Content deleted Content added
<tt> is deprecated, replace with <code> |
Shorten Short description per WP:SDSHORT |
||
(30 intermediate revisions by 20 users not shown) | |||
Line 1:
{{Short description|Functions of the C standard software library}}
{{Use dmy dates|date=January 2022}}
{{C Standard Library}}
'''C
==Overview of functions==
The
{| class="wikitable" style="font-size:0.85em"
; Terminating a program▼
!
*<code>{{man|sh|abort|SUS||inline}}</code> - causes abnormal program termination (without cleaning up)▼
! Function
*<code>{{man|sh|exit|SUS||inline}}</code> - causes normal program termination with cleaning up▼
! Description
*<code>{{man|sh|_Exit|SUS||inline}}</code> - causes normal program termination without cleaning up▼
|-
*<code>{{man|sh|atexit|SUS||inline}}</code> - registers a function to be called on exit() invocation▼
| {{anchor|abort}}<code>[http://en.cppreference.com/w/c/program/abort abort]</code>
; Communicating with the environment▼
▲
*<code>{{man|sh|getenv|SUS||inline}}</code> - accesses the list of the environment variables▼
|-
*<code>{{man|sh|system|SUS||inline}}</code> - calls the host environment's command processor▼
| {{anchor|exit}}<code>[http://en.cppreference.com/w/c/program/exit exit]</code>
|-
| {{anchor|_Exit}}<code>[http://en.cppreference.com/w/c/program/_Exit _Exit]</code>
▲
|-
| {{anchor|atexit}}<code>[http://en.cppreference.com/w/c/program/atexit atexit]</code>
▲
|-
| {{anchor|quick_exit}}<code>[http://en.cppreference.com/w/c/program/quick_exit quick_exit]</code>
| causes normal program termination without cleaning up, but with IO buffers flushed ([[C11 (C standard revision)|C11]])
|-
| {{anchor|quick_exit}}<code>[http://en.cppreference.com/w/c/program/at_quick_exit at_quick_exit]</code>
| registers a function to be called on quick_exit() invocation
|-
| {{anchor|getenv}}<code>[http://en.cppreference.com/w/c/program/getenv getenv]</code>
|-
| {{anchor|system}}<code>[http://en.cppreference.com/w/c/program/system system]</code>
|}
==References==
Line 27 ⟶ 45:
==External links==
{{wikibooks
{{clear}}
[[Category:C Standard Library]]▼
|