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>GetEnvironmentVariable</title>
8  </head>
9  <body>
10<h1><CODE><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/hio/Overview.html">hio</a>::<a href="../../../nn/hio/CTR/Overview.html">CTR</a>::GetEnvironmentVariable</CODE> Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14<a href="../../../nn/Result/Overview.html">Result</a> GetEnvironmentVariable(
15     <a href="../../../nn_types/s32.html">s32</a> * pLength,
16     char * buf,
17     <a href="../../../nn_types/s32.html">s32</a> length,
18     const char * name
19);
20
21<a href="../../../nn_types/s32.html">s32</a> GetEnvironmentVariable(
22     char * buf,
23     size_t length,
24     const char * name
25);
26
27<a href="../../../nn/Result/Overview.html">Result</a> GetEnvironmentVariable(
28     <a href="../../../nn_types/s32.html">s32</a> * pLength,
29     wchar_t * buf,
30     <a href="../../../nn_types/s32.html">s32</a> length,
31     const wchar_t * name
32);
33
34<a href="../../../nn_types/s32.html">s32</a> GetEnvironmentVariable(
35     wchar_t * buf,
36     <a href="../../../nn_types/s32.html">s32</a> length,
37     const wchar_t * name
38);
39</pre>
40    </div>
41<h2>List of Overloaded Member Functions</h2>
42    <div class="section">
43      <table class="members">
44        <tr>
45          <td>
46<a href="./GetEnvironmentVariable(0).html"><CODE>GetEnvironmentVariable(s32 *, char *, s32, const char *)</CODE> </a>
47          </td>
48<td>Gets the environment variable and returns the result of the process.</td>
49        </tr>
50        <tr>
51          <td>
52<a href="./GetEnvironmentVariable(1).html"><CODE>GetEnvironmentVariable(char *, size_t, const char *)</CODE> </a>
53          </td>
54<td>Gets the environment variable and returns the number of bytes copied to the buffer.</td>
55        </tr>
56        <tr>
57          <td>
58<a href="./GetEnvironmentVariable(2).html"><CODE>GetEnvironmentVariable(s32 *, wchar_t *, s32, const wchar_t *)</CODE> </a>
59          </td>
60<td>Gets the environment variable and returns the result of the process. This is the overloaded member function when the variable name is specified in Unicode.</td>
61        </tr>
62        <tr>
63          <td>
64<a href="./GetEnvironmentVariable(3).html"><CODE>GetEnvironmentVariable(wchar_t *, s32, const wchar_t *)</CODE> </a>
65          </td>
66<td>Gets the environment variable and returns the number of bytes copied to the buffer. This is the overloaded member function when the variable name is specified in Unicode.</td>
67        </tr> </table>
68    </div>
69<h2>Description of <CODE>GetEnvironmentVariable(s32 *, char *, s32, const char *)</CODE></h2>
70<div class="section"><p>The value of the environment variable specified by <B>name</B> is stored in <B>buf</B>.<br />If the environment variable does not exist, &quot; <CODE>\0</CODE> &quot; is stored at the start of the buffer.</p><!-- write here --></div>
71<h2>Description of <CODE>GetEnvironmentVariable(char *, size_t, const char *)</CODE></h2>
72<div class="section"><p>The value of the environment variable specified by <B>name</B> is stored in <B>buf</B>.<br />If the environment variable does not exist, &quot; <CODE>\0</CODE> &quot; is stored at the start of the buffer.</p><!-- write here --></div>
73<h2>Description of <CODE>GetEnvironmentVariable(s32 *, wchar_t *, s32, const wchar_t *)</CODE></h2>
74<div class="section"><p>The value of the environment variable specified by <B>name</B> is stored in <B>buf</B>.<br />If the environment variable does not exist, &quot; <CODE>\0</CODE> &quot; is stored at the start of the buffer. This is the overloaded member function when the variable name is specified in Unicode.</p><!-- write here --></div>
75<h2>Description of <CODE>GetEnvironmentVariable(wchar_t *, s32, const wchar_t *)</CODE></h2>
76<div class="section"><p>The value of the environment variable specified by <B>name</B> is stored in <B>buf</B>.<br />Even if the environment variable does not exist, &quot; <CODE>\0</CODE> &quot; is stored at the start of the buffer. This is the overloaded member function when the variable name is specified in Unicode.</p><!-- write here --></div>
77  <hr><p>CONFIDENTIAL</p></body>
78</html>
79