GetArgc

nn::dbg::CTR::GetArgc Function

Syntax

#include <nn/dbg.h>

int GetArgc(
     void
);

Parameters

None.

Return Values

The number of argument strings (including the application's own name) stored in the startup argument buffer.

Description

Gets the number of arguments from the argument buffer, stored as a string array.

Returns 0 if there is no startup argument buffer.

The number of arguments includes the string of the application's name. For example, if the application was started with the two explicit arguments -A 123, the function returns three values. See nn::dbg::CTR::Argv0String for details on the application's name string.

Use the nn::dbg::CTR::GetArgv function to get the argument values.

Always returns 0 in release builds.

Revision History

2011/12/14
Initial version.

CONFIDENTIAL