Tên miền không gian tên trong một lồng nhau-tên-specifier có trách nhiệm được xác định bởi một định nghĩa namednamespace hoặc một định nghĩa bí danh tên miền không gian. Việc tìm kiếm cho vòng loại ban đầu trước bất kỳ:: | 18-10 Language support library DRAFT 28 April 1995 Start and termination Table 28 Header cstdlib synopsis Type Name s Macros m _ a . -r . T EXIT FAILURE EXIT SUCCESS Functions abort atexit exit 2 The contents are the same as the Standard C library with the following changes atexit void f void 3 The function atexit has additional behavior in this International Standard For the execution of a function registered with atexit if control leaves the function because it provides no handler for a thrown exception terminated is called . exit int status 4 The function exit has additional behavior in this International Standard First all functions f registered by calling atexit f are called in the reverse order of their 162 163 Next all static objects are destroyed in the reverse order of their construction. Automatic objects are not destroyed as a result of calling exit . Next all open C streams as mediated by the function signatures declared in cstdio with unwritten buffered data are flushed all open C streams are closed and all files created by calling tmpfile are Finally control is returned to the host environment. If status is zero or EXIT_SUCCESS an implementation-defined form of the status successful termination is returned. If status is EXIT_FAILURE an implementation-defined form of the status unsuccessful termination is returned. Otherwise the status returned is 5 The function exit never returns to its caller. SEE ALSO subclauses ISO C subclause . Dynamic memory management 1 The header new defines several functions that manage the allocation of dynamic storage in a program. It also defines components for reporting storage management errors. Header new synopsis 161 A function is called for every time it is registered. The function signature atexit void is declared in cstdlib . 162 Automatic objects are all destroyed in a program whose function main contains .