4.10.12. _sys_command_string()

This function retrieves the command line used to invoke the current application from the environment that called the application.

Syntax

char *_sys_command_string(char *cmd, int len);

where:

cmd

Is a pointer to a buffer that can be used to storethe command line. It is not required that the command line is stored in cmd.

len

Is the length of the buffer.

Implementation

This function is called by the library startup code to set up argv and argc to pass to main().

Returns

The function must return either:

  • A pointer to the command line, if successful. This can be either a pointer to the cmd buffer if it is used, or a pointer to wherever else the command line is stored.

  • NULL, if not successful.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI 0067D
Non-Confidential