Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
C process control
Group of functions (abort, exit, _Exit, atexit, quick_exit, at_quick_exit, getenv, system) in the header stdlib.h of the C standard library implementing basic process control operations

C process control refers to a group of functions in the standard library of the C programming language implementing basic process control operations. 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.

We don't have any images related to C process control yet.
We don't have any YouTube videos related to C process control yet.
We don't have any PDF documents related to C process control yet.
We don't have any Books related to C process control yet.
We don't have any archived web articles related to C process control yet.

Overview of functions

The process control functions are defined in the stdlib.h header (cstdlib header in C++).

FunctionDescription
Terminating a programabortcauses abnormal program termination (without cleaning up)
exitcauses normal program termination with cleaning up
_Exitcauses normal program termination without cleaning up (C99)
atexitregisters a function to be called on exit() invocation
quick_exitcauses normal program termination without cleaning up, but with IO buffers flushed (C11)
at_quick_exitregisters a function to be called on quick_exit() invocation
Communicating withthe environmentgetenvaccesses the list of the environment variables
systemcalls the host environment's command processor
Wikibooks has a book on the topic of: C Programming/C Reference

References

  1. Crawford, Tony; Peter Prinz (December 2005). C in a Nutshell. §16.11 – Process Control: O'Reilly. p. 618. ISBN 0-596-00697-7.{{cite book}}: CS1 maint: location (link) 0-596-00697-7

  2. ISO/IEC 9899:1999 specification (PDF). p. 315, § 7.20.4 "Communication with the environment". Retrieved 25 November 2011. http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf