Skip to main content

Posts

Showing posts with the label The semantics of the arguments to main

The semantics of the arguments to main

The value of argv[0] is a pointer to a null byte when the program is   run on DOS versions prior  to version 3.0. For DOS version 3.0 or   later, argv[0] points to the program name.  The remaining argv strings point to each component of the DOS   command-line arguments.  Whitespace separating arguments is removed,   and each sequence of contiguous non white  space characters is treated   as a single argument. Quoted strings are handled correctly (that  is,     as one string containing spaces)