Search code examples
cgcc-warning

C warning implicit declaration of function 'exit'


This is my warning.

implicit declaration of function 'exit'

How i can remove it.

i am using linux & gcc compiler.


Solution

  • Add:

    #include <stdlib.h>
    

    to the top of your program.