C process control
From Wikipedia, the free encyclopedia
(Redirected from System (C standard library))
|
|
This article may need to be wikified to meet Wikipedia's quality standards. Please help by adding relevant internal links, or by improving the article's layout. (January 2012)
Click [show] on right for more details.
No reason has been cited for the Wikify tag on this article.
|
| C Standard Library |
|---|
|
C process control refers to a group of functions in the standard library of the C programming language implementing basic process control operations.[1][2] The process control operations include actions such as termination of the program with various levels of cleanup, running an external command interpreter or accessing the list of the environment operations.
[edit] Overview of functions
The process control functions are defined in the stdlib.h header (cstdlib header in C++).
| Function | Description | |
|---|---|---|
| Terminating a program |
abort |
causes abnormal program termination (without cleaning up) |
exit |
causes normal program termination with cleaning up | |
_Exit |
causes normal program termination without cleaning up (C99) | |
atexit |
registers a function to be called on exit() invocation | |
| Communicating with the environment |
getenv |
accesses the list of the environment variables |
system |
calls the host environment's command processor |
[edit] References
- ^ Crawford, Tony; Peter Prinz (December 2005). C in Nutshell. §16.11 - Process Control: O'Reilly. pp. 618. ISBN 0-596-00697-7.
- ^ ISO/IEC 9899:1999 specification. p. 315, § 7.20.4 "Communication with the environment". http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf. Retrieved 25 November 2011.
[edit] External links
| The Wikibook C Programming has a page on the topic of |
| This programming language-related article is a stub. You can help Wikipedia by expanding it. |