_exit.c

来自「cygwin, 著名的在win32下模拟unix操作系统的东东」· C语言 代码 · 共 47 行

C
47
字号
/*FUNCTION<<_Exit>>---end program execution with no cleanup processingINDEX	_ExitANSI_SYNOPSIS	#include <stdlib.h>	void _Exit(int <[code]>);TRAD_SYNOPSIS	#include <stdlib.h>	void _Exit(<[code]>)	int <[code]>;DESCRIPTIONUse <<_Exit>> to return control from a program to the host operatingenvironment.  Use the argument <[code]> to pass an exit status to theoperating environment: two particular values, <<EXIT_SUCCESS>> and<<EXIT_FAILURE>>, are defined in `<<stdlib.h>>' to indicate success orfailure in a portable fashion.<<_Exit>> differs from <<exit>> in that it does not run anyapplication-defined cleanup functions registered with <<atexit>> andit does not clean up files and streams.  It is identical to <<_exit>>.RETURNS<<_Exit>> does not return to its caller.PORTABILITY<<_Exit>> is defined by the C99 standard.Supporting OS subroutines required: <<_exit>>.*/#include <stdlib.h>#include <unistd.h>	/* for _exit() declaration */#include <reent.h>void _DEFUN (_Exit, (code),	int code){  _exit (code);}

⌨️ 快捷键说明

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