|
|
1.1 ! root 1: ! 2: ! 3: exit() General Function exit() ! 4: ! 5: ! 6: ! 7: ! 8: Terminate a program gracefully ! 9: ! 10: vvooiidd eexxiitt(_s_t_a_t_u_s) iinntt _s_t_a_t_u_s; ! 11: ! 12: exit is the normal method to terminate a program directly. ! 13: status information is passed to the parent process. By conven- ! 14: tion, an exit status of zero indicates success, whereas an exit ! 15: status greater than zero indicates failure. If the parent ! 16: process issued a wait call, it is notified of the termination and ! 17: is passed the least significant eight bits of status. As exit ! 18: never returns, it is always successful. Unlike the related func- ! 19: tion _exit, exit does extra cleanup, such as flushing buffered ! 20: files and closing open files. ! 21: ! 22: ***** Example ***** ! 23: ! 24: For an example of this function, see the entry for ffooppeenn. ! 25: ! 26: ***** See Also ***** ! 27: ! 28: _exit(), close(), general functions, wait() ! 29: ! 30: ! 31: ! 32: ! 33: ! 34: ! 35: ! 36: ! 37: ! 38: ! 39: ! 40: ! 41: ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.