nn::dbg::CTR::GetArgv Function#include <nn/dbg.h>
const char * GetArgv(
int n
);
| Name | Description | |
|---|---|---|
| in | n | Index |
Gets the arguments from the argument buffer, stored as a string.
Returns NULL if there is no startup argument buffer.
Pass a number to get the value for the argument at that index number. For example, pass 0 to get the application's name string. (This value is defined as ARG_ARGV0_STRING.)
Example // Number of arguments int argc = nn::dbg::CTR::GetArgc(); // Display each argument for( int n=0; nnn::dbg::CTR::GetArgv(n) ); } }
This always returns NULL in release builds, regardless of the index number passed.
CONFIDENTIAL