The exit function is declared in <stdlib.h>, so include that header. This prevents a build failure with compilers that no longer support implicit function declarations (which were removed from the language in C99).
<stdlib.h>
Log in to post a comment.