hi all,
Can any one tel me how exit() in C is implemented?
Thanks in advance
Printable View
hi all,
Can any one tel me how exit() in C is implemented?
Thanks in advance
Nothing a bit of research wouldn't cure. http://www.opengroup.org/onlinepubs/...ions/exit.html
can i know how this exit() function is defined
void exit(int status)
It is OS-dependent. In general, exit() first runs any exit handler functions that have been registered using atexit(), then it initiates a C library teardown routine (flushes any data remaining in open file handles, releases any specially-acquired resources, etc.). Finally, it makes a system call (OS-dependent) which actually terminates the process.