ftp.delorie.com/djgpp/doc/libc/libc_123.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

__crt0_setup_arguments

Syntax

 
#include <crt0.h>

void   __crt0_setup_arguments(void);

Description

This function, provided by libc.a, does all the work required to provide the two arguments passed to main() (usually argc and argv). If main() does not use these arguments, the programmer can reduce the size of the program image by providing a version of this function that does nothing.

Note that since the default __crt0_setup_arguments_function will not expand wildcards inside quotes (" or '), you can quote a part of the argument that doesn't include wildcards and still have them expanded. This is so you could use wildcard expansion with filenames which have embedded whitespace (on LFN filesystems).

See section __crt0_load_environment_file.

Portability

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004