/* * Sample program for exit() system call - No. 1 * * exit(3) - cause normal program termination * * #include * void exit(int status); */ #include /* following definition is copyed from */ #define EXIT_FAILURE 1 /* Failing exit status. */ #define EXIT_SUCCESS 0 /* Successful exit status. */ main() { printf("good-bye\n"); exit(EXIT_SUCCESS); }