Execution of a C/C++ program

atexit

The atexit function allows to register a function to be called at the program’s normal termination.

They are called in reverse order relative to their register.

Command line arguments and environment variables

argv is an array of strings.

argv[0] is the program reference.

env is an array of strings, each representing a variable, in the form name-value pair.

getenv returns the value of a variable name.

Address space of a Unix process

Last updated