Lines Matching refs:main
53 @cindex @code{main} function
54 @findex main
55 The system starts a C program by calling the function @code{main}. It
56 is up to you to write a function named @code{main}---otherwise, you
59 In @w{ISO C} you can define @code{main} either to take no arguments, or to
64 int main (int @var{argc}, char *@var{argv}[])
73 @code{main}. If @code{main} doesn't take arguments, then you cannot get
87 In Unix systems you can define @code{main} a third way, using three arguments:
90 int main (int @var{argc}, char *@var{argv}[], char *@var{envp}[])
97 @code{main} to take two arguments, and use the value of @code{environ}.
272 @var{argv} and @var{argc} arguments to its @code{main} function, and is
489 @code{environ} as the third argument to @code{main}.
791 The usual way for a program to terminate is simply for its @code{main}
793 @code{main} function is used to report information back to the process's
819 calling @code{exit}. Returning from @code{main} is equivalent to
820 calling @code{exit}, and the value that @code{main} returns is used as