|
|
coherent
exit() General Function exit() Terminate a program gracefully vvooiidd eexxiitt(_s_t_a_t_u_s) iinntt _s_t_a_t_u_s; exit is the normal method to terminate a program directly. status information is passed to the parent process. By conven- tion, an exit status of zero indicates success, whereas an exit status greater than zero indicates failure. If the parent process issued a wait call, it is notified of the termination and is passed the least significant eight bits of status. As exit never returns, it is always successful. Unlike the related func- tion _exit, exit does extra cleanup, such as flushing buffered files and closing open files. ***** Example ***** For an example of this function, see the entry for ffooppeenn. ***** See Also ***** _exit(), close(), general functions, wait() COHERENT Lexicon Page 1
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.