Namespaces
Variants
Views
Actions

Difference between revisions of "c/program"

From cppreference.com
< c
m (descriptive name)
m (References)
Line 50: Line 50:
 
{{dsc inc | c/program/dsc jmp_buf}}
 
{{dsc inc | c/program/dsc jmp_buf}}
 
{{dsc end}}
 
{{dsc end}}
 +
 +
===References===
 +
{{ref std c11}}
 +
{{ref std | section=7.13 | title=Nonlocal jumps <setjmp.h> | p=262-264}}
 +
{{ref std | section=7.14 | title=Signal handling <signal.h> | p=265-267}}
 +
{{ref std | section=7.22 | title=General utilities <stdlib.h> | p=340-360}}
 +
{{ref std c99}}
 +
{{ref std | section=7.13 | title=Nonlocal jumps <setjmp.h> | p=243-245}}
 +
{{ref std | section=7.14 | title=Signal handling <signal.h> | p=246-248}}
 +
{{ref std | section=7.20 | title=General utilities <stdlib.h> | p=306-324}}
 +
{{ref std c89}}
 +
{{ref std | section= | title=}}
 +
{{ref std end}}
  
 
===See also===
 
===See also===

Revision as of 04:42, 14 February 2015

Contents

Program termination

The following functions manage program termination and resource cleanup.

Defined in header <stdlib.h>
causes abnormal program termination (without cleaning up)
(function) [edit]
causes normal program termination with cleaning up
(function) [edit]
causes normal program termination without completely cleaning up
(function) [edit]
(C99)
causes normal program termination without cleaning up
(function) [edit]
registers a function to be called on exit() invocation
(function) [edit]
registers a function to be called on quick_exit invocation
(function) [edit]
indicates program execution execution status
(macro constant) [edit]

Communicating with the environment

calls the host environment's command processor
(function) [edit]
access to the list of environment variables
(function) [edit]

Signals

Several functions and macro constants for signal management are provided.

Defined in header <signal.h>
sets a signal handler for particular signal
(function) [edit]
runs the signal handler for particular signal
(function) [edit]
the integer type that can be accessed as an atomic entity from an asynchronous signal handler
(typedef)
defines signal handling strategies
(macro constant) [edit]
error was encountered
(macro constant) [edit]
Signal types
defines signal types
(macro constant) [edit]

Non-local jumps

Defined in header <setjmp.h>
saves the context
(function macro) [edit]
jumps to specified location
(function) [edit]
Types
execution context type
(typedef) [edit]

References

  • C11 standard (ISO/IEC 9899:2011):
  • 7.13 Nonlocal jumps <setjmp.h> (p: 262-264)
  • 7.14 Signal handling <signal.h> (p: 265-267)
  • 7.22 General utilities <stdlib.h> (p: 340-360)
  • C99 standard (ISO/IEC 9899:1999):
  • 7.13 Nonlocal jumps <setjmp.h> (p: 243-245)
  • 7.14 Signal handling <signal.h> (p: 246-248)
  • 7.20 General utilities <stdlib.h> (p: 306-324)
  • C89/C90 standard (ISO/IEC 9899:1990):

See also

C++ documentation for Program support utilities