MentOS  0.8.0
The Mentoring Operating System
Functions | Variables
libc_start.c File Reference

Contains the programs initialization procedure. More...

Functions

int __libc_start_main (int(*main)(int, char **, char **), int argc, char *argv[], char *envp[])
 The entry point to every program. More...
 

Variables

char ** environ
 Reference to the environ variable in setenv.c.
 

Detailed Description

Contains the programs initialization procedure.

Function Documentation

◆ __libc_start_main()

int __libc_start_main ( int(*)(int, char **, char **)  main,
int  argc,
char *  argv[],
char *  envp[] 
)

The entry point to every program.

Parameters
mainPointer to the main function.
argcThe number of arguments.
argvThe pointer to the arguments.
envpThe pointer to the environmental variables.
Returns
The return of the main function.