C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Suppressing Command-Line Processing
                                             Up Contents Index Back
─────C/C++ Language─────────────────────────────────────────────────────────
 
     If your program does not take command-line arguments, you can save
     a small amount of space by suppressing use of the library routine
     that performs command-line processing. This routine is called
     _setargv. To suppress its use, define a routine that does nothing
     in the same file that contains the main function, and name it
     _setargv. The call to _setargv will be satisfied by your
     definition of _setargv, and the library version will not be
     loaded.
 
     Similarly, if you never access the environment table through the
     <envp> argument, you can provide your own empty routine to be used
     in place of _setenvp, the environment-processing routine.
 
     If your program makes calls to the spawn or exec family of
     routines in the C run-time library, you should not suppress the
     environment-processing routine, since this routine is used to pass
     an environment from the parent process to the child process.
 
     See also: Expanding Wildcard Arguments
               Parsing Command-Line Arguments
                                    -♦-