7.7.8.82. GEL_SetSemihostingMainArgsΒΆ
Set the arguments that must be forwarded to the target program's main function in response to a SYS_GET_CMDLINE semihosting call.
Syntax
GEL_SetSemihostingMainArgs( args );
Parameters
args: String of arguments to be passed
Description
This function should be called to set the desired behaviour prior to calling GEL_Load to start a program load
Synchronous
Synchronous from GEL: Yes
Completely synchronous: No
Example
/* will pass an array of size 5 containing [arg1,arg2,arg3,arg4,arg5] */
GEL_SetSemihostingMainArgs("arg1 arg2 arg3 arg4 arg5")
/* will pass an array of size 4 containing [arg1, arg2 with space, arg3, arg4] */
GEL_SetSemihostingMainArgs("arg1 \"arg2 with space\" arg3 arg4")
Related Topics