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