Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Overview of functions  





2 References  





3 External links  














C process control






فارسی

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

(Redirected from Getenv)

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[edit]

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[edit]

  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)
  • ^ ISO/IEC 9899:1999 specification (PDF). p. 315, § 7.20.4 "Communication with the environment". Retrieved 25 November 2011.
  • External links[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=C_process_control&oldid=1126867043#getenv"

    Category: 
    C standard library
    Hidden categories: 
    CS1 maint: location
    Articles with short description
    Short description is different from Wikidata
    Use dmy dates from January 2022
     



    This page was last edited on 11 December 2022, at 17:42 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki