C process control: Difference between revisions

Content deleted Content added
Added {{R from member}} tag to redirect (TW)
undo move hard-way (I have copyright to this content, so no problem for attribution). No consensus for previous move. See also this discussion Talk:C_standard_library#Pages_for_each_function_and_WP:NOTMANUAL
Line 1:
{{C Standard Library}}
#REDIRECT [[Stdlib.h]]
 
{{R from member}}
'''C program control operations''' are a group of functions in the [[C standard library|standard library]] of the [[C programming language]] implementing basic program control operations.{{cn}}
 
==Overview of functions==
 
The program control functions are defined in the <tt>stdlib.h</tt> header (<tt>cstdlib</tt> header in C++).
 
; Terminating a program
*<tt>{{man|sh|abort|SUS||inline}}</tt> - causes abnormal program termination (without cleaning up)
*<tt>{{man|sh|exit|SUS||inline}}</tt> - causes normal program termination with cleaning up
*<tt>{{man|sh|_Exit|SUS||inline}}</tt> - causes normal program termination without cleaning up
*<tt>{{man|sh|atexit|SUS||inline}}</tt> - registers a function to be called on exit() invocation
 
; Communicating with the environment
*<tt>{{man|sh|getenv|SUS||inline}}</tt> - accesses the list of the environment variables
*<tt>{{man|sh|system|SUS||inline}}</tt> - calls the host environment's command processor
 
==References==
{{reflist}}
 
==External links==
{{wikibooks|C Programming|C program control operations|C Programming/C Reference}}
 
[[Category:C Standard Library]]