nn::dbg::CTR::GetArgv Function

Syntax

#include <nn/dbg.h>
const char * GetArgv(
     int n
);

Parameters

Name Description
in n Index

Return Values

Argument string stored in the specified startup argument buffer.

Description

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.

Revision History

2011/12/14
Initial version.

CONFIDENTIAL