Jump to content

C process control

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 1exec1 (talk | contribs) at 20:31, 31 October 2011 (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). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

C program control operations are a group of functions in the standard library of the C programming language implementing basic program control operations.[citation needed]

Overview of functions

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

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
  • 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

References