|
楼主 |
发表于 2022-7-25 09:03:23
|
显示全部楼层
stdlib.h文件里是这样写的
extern _ARMABI_NORETURN void exit(int /*status*/);
/*
* causes normal program termination to occur. If more than one call to the
* exit function is executed by a program, the behaviour is undefined.
* First, all functions registered by the atexit function are called, in the
* reverse order of their registration.
* Next, all open output streams are flushed, all open streams are closed,
* and all files created by the tmpfile function are removed.
* Finally, control is returned to the host environment. If the value of
* status is zero or EXIT_SUCCESS, an implementation-defined form of the
* status 'successful termination' is returned. If the value of status is
* EXIT_FAILURE, an implementation-defined form of the status
* 'unsuccessful termination' is returned. Otherwise the status returned
* is implementation-defined.
*/
头文件里有对exit函数申明了。 |
|