exit.3
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 41 行
3
41 行
.\" SCCSID: @(#)exit.3 8.2 1/28/91.TH exit 3.SH Nameexit \- terminate a process after flushing any pending output.SH Syntax.nf.B void exit(\fIstatus\fP).B int \fIstatus\fP;.br.B int atexit(\fIfunc\fP).B void (*\fIfunc\fP)();.fi.SH Description.NXR "exit subroutine (standard C)".NXR "_exit subroutine".NXR "process" "terminating after flushing pending output"The.PN exitfunction terminates a process after calling the Standard I/O libraryfunction,.I _cleanup,to flush any buffered output.The.PN exitfunction never returns..PPThe.PN atexitfunction registers a function to be called (without arguments) at normal program termination; functions arecalled in the reverse order of their registration (that is, most recent first). If a function is registered more than once,it will be called more than once..SH Return ValuesThe.PN atexitfunction returns zero if the registration succeeds, or \-1 if the function pointer is null or if too many functions are registered..SH See Alsoexit(2), intro(3s)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?