Quote Originally Posted by sloppy View Post
I know what a pointer is, and from the pdf you linked I read that the casting of malloc is not wrong, it is just not needed and obsolete. (as I suspected above)

Anyway thanks.
I should have been more clean in my last post..
but the links I gave are not for you.. its for the person who started this thread..

and the link I posted below your quote is for you.. faq explains it.. suppression of error variables
in man pages malloc is not a stdio.h function..
but it works as I think most of the compilers let it go..
even if you dont include stdio.h the code compiles well.. but with warnings..
so its always better not take warnings from compiler