This is my warning.
implicit declaration of function 'exit'
How i can remove it.
i am using linux & gcc compiler.
Implicit declaration of functions is not allowed; every function must be explicitly declared before it can be called. In C90, if a function is called without an explicit prototype, the compiler provides an implicit declaration.
In the C Programming Language, the exit function calls all functions registered with atexit and terminates the program. File buffers are flushed, streams are closed, and temporary files are deleted.
If an implicit declaration does not match the built-in definition, you get this warning. To fix the problem, you have to declare the functions before using them; normally you do this by including the appropriate header.
Add:
#include <stdlib.h>
to the top of your program.
Do you have this preprocessor? If not, add it.
#include <stdlib.h>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With