| |||
| Home > The C and C++ Libraries > Tailoring the input/output functions > _sys_command_string() | |||
This function retrieves the command line used to invoke the current application from the environment that called the application.
char *_sys_command_string(char *cmd, int len);
where:
cmdIs a pointer to a buffer that can be used to store
the command line. It is not required that the command line is stored
in cmd.
lenIs the length of the buffer.
This function is called by the library startup code to set
up argv and argc to pass to main().