C examples for stdlib.h:_Exit
function
<cstdlib> <stdlib.h>
Terminate calling process
void _Exit (int status); void _Exit (int status) noexcept;
Parameter | Description |
---|---|
status | Status code. |
none.
#include <stdio.h> #include <stdlib.h> int main ()// w w w .ja v a2 s.c om { FILE * pFile; pFile = fopen ("nonExist.cpp","r"); if (pFile==NULL) { printf ("Error opening file"); _Exit (EXIT_FAILURE); } return 0; }