3
Contributors
3
Replies
5
Views
6 Years
Discussion Span
Last Post by Narue
0

"warning: incompatible implicit declaration of built-in function 'malloc'"

Are you including stdlib.h?

Edited by gerard4143: n/a

0

I was using process.h , now i replaced it with malloc.h.
No warning now.. thanx

But what about my Circular Linklist ??

Is it correct CIRCULAR implementation??

0

>I was using process.h , now i replaced it with malloc.h.
So you replaced a header which didn't contain the function wanted with a header that might not even exist. Brilliant. And what about including stdlib.h as gerard suggested? That's the correct solution.

>Is it correct CIRCULAR implementation??
Assuming you want to write code for a living, you can't just toss your code to others for confirmation of correctness. You need to answer this question yourself with thorough test cases.

This article has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.