1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7    <title>GetArgc</title>
8  </head>
9  <body>
10    <h1><CODE><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/dbg/Overview.html">dbg</a>::<a href="../../../nn/dbg/CTR/Overview.html">CTR</a>::GetArgc</CODE> Function</h1>
11    <h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">#include &lt;nn/dbg.h&gt;
14
15int GetArgc(
16     void
17);
18</pre>
19    </div>
20    <h2>Parameters</h2>
21    <div class="section">
22      <p>None.</p>
23    </div>
24    <h2>Return Values</h2>
25    <div class="section">The number of argument strings (including the application's own name) stored in the startup argument buffer. </div>
26    <h2>Description</h2>
27    <div class="section">
28      <p>Gets the number of arguments from the argument buffer, stored as a string array.</p><P>
29Returns 0 if there is no startup argument buffer.
30</P><P>
31The number of arguments includes the string of the application's name. For example, if the application was started with the two explicit arguments <CODE>-A 123</CODE>, the function returns three values. See <CODE><a href="../../../nn/dbg/CTR/Argv0String.html">nn::dbg::CTR::Argv0String</a></CODE> for details on the application's name string.
32</P><P>
33Use the <CODE><a href="../../../nn/dbg/CTR/GetArgv.html">nn::dbg::CTR::GetArgv</a></CODE> function to get the argument values.
34</P><P>
35  Always returns 0 in release builds.
36</P></div>
37    <h2>Revision History</h2>
38    <div class="section">
39      <dl class="history">
40        <dt>2011/12/14</dt>
41        <dd>Initial version.<br />
42        </dd>
43      </dl>
44    </div>
45  <hr><p>CONFIDENTIAL</p></body>
46</html>