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>GetArgv</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>::GetArgv</CODE> Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">#include &lt;nn/dbg.h&gt;
14const char * GetArgv(
15     int n
16);
17</pre>
18    </div>
19<h2>Parameters</h2>
20    <div class="section">
21      <table class="arguments">
22        <thead>
23          <tr>
24            <td width="15" />
25<th>Name</th>
26<td>Description</td>
27          </tr>
28        </thead>
29        <tr>
30<td>in</td>
31<th>n</th>
32<td>Index</td>
33        </tr> </table>
34    </div>
35<h2>Return Values</h2>
36<div class="section">Argument string stored in the specified startup argument buffer. </div>
37<h2>Description</h2>
38    <div class="section">
39<p>Gets the arguments from the argument buffer, stored as a string.</p><P>
40Returns NULL if there is no startup argument buffer.
41</P><P>
42Pass 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 <CODE>ARG_ARGV0_STRING</CODE>.)
43</P><PRE>
44  Example
45
46  // Number of arguments
47  int argc = <font color="red">nn::dbg::CTR::GetArgc()</font>;
48
49  // Display each argument
50  for( int n=0; n<argc; n++ )
51  {
52      NN_LOG( "argv[%d] = [%s]\n", n, <font color="red">nn::dbg::CTR::GetArgv(n)</font> );
53  }
54  }
55</PRE><P>
56This always returns NULL in release builds, regardless of the index number passed.
57</P></div>
58<h2>Revision History</h2>
59    <div class="section">
60      <dl class="history">
61        <dt>2011/12/14</dt>
62<dd>Initial version.<br />
63        </dd>
64      </dl>
65    </div>
66  <hr><p>CONFIDENTIAL</p></body>
67</html>
68