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.
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 | |
quick_exit | causes normal program termination without cleaning up, but with IO buffers flushed (C11) | |
at_quick_exit | registers a function to be called on quick_exit() invocation | |
Communicating with the environment | getenv | accesses the list of the environment variables |
system | calls the host environment's command processor |
References
External links
Wikibooks has a book on the topic of: C Programming/C Reference
🔥 Top keywords: Main PageSpecial:SearchWikipedia:Featured picturesYasukeHarrison ButkerRobert FicoBridgertonCleopatraDeaths in 2024Joyce VincentXXXTentacionHank AdamsIt Ends with UsYouTubeNew Caledonia2024 Indian general electionHeeramandiDarren DutchyshenSlovakiaKingdom of the Planet of the ApesAttempted assassination of Robert FicoLawrence WongBaby ReindeerXXX: Return of Xander CageThelma HoustonFuriosa: A Mad Max SagaMegalopolis (film)Richard GaddKepler's SupernovaWicked (musical)Sunil ChhetriXXX (2002 film)Ashley MadisonAnya Taylor-JoyPlanet of the ApesNava MauYoung SheldonPortal:Current eventsX-Men '97