Wednesday, September 21, 2011

What is "warning: implicit declaration of function" in C?

This warning is given when the compiler cannot find a function prototype. Commonly encountered when appropriate header files are not included.

e.g: using atof() without including stdlib.h

Ref:
http://stackoverflow.com/questions/2406986/c-warning-implicit-declaration-of-function-exit

No comments: