exit.3

来自「操作系统设计与实现源码」· 3 代码 · 共 60 行

3
60
字号


EXIT(3)                   Minix Programmer's Manual                    EXIT(3)


NAME
     exit, atexit - terminate a process after flushing any pending output

SYNOPSIS
     #include <stdlib.h>

     void exit(int status)
     int atexit(void (*func)(void))

DESCRIPTION
     Exit first calls all functions registered by  atexit,  flushes  all  data
     buffered by the Standard I/O library, and finally terminates the process.
     Exit never returns.

     Atexit registers the function func into a table of functions to be called
     on exit.

SEE ALSO
     exit(2).

DIAGNOSTICS
     Atexit returns 0 on success, -1 if malloc cannot allocate more memory for
     the list of registered functions.





























5BSD                              May 12, 1986                               1

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?