'programming'에 해당되는 글 387건

  1. 2017.09.22 exit(0) exit(1)

exit(0) exit(1)

programming/C_C++ 2017. 9. 22. 14:45
반응형

-------------------------------------

exit(0);

exit(1);

-------------------------------------

#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0 /* Successful exit status. */
#endif

#ifndef EXIT_FAILURE
#define EXIT_FAILURE 1 /* Failing exit status. */
#endif

exit(EXIT_SUCCESS);

exit(EXIT_FAILURE);

-------------------------------------

 

반응형
Posted by 공간사랑
,