nn::hio::CTR::GetEnvironmentVariable Function
s32 GetEnvironmentVariable(
wchar_t * buf,
s32 length,
const wchar_t * name
);
| Name | Description | |
|---|---|---|
| out | buf | Pointer to the buffer that will store the environment variable. |
| in | length | Buffer size. |
| in | name | Name of the environment variable. |
-1. 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.
The value of the environment variable specified by name is stored in buf.
If the environment variable does not exist, " \0 " is stored at the start of the buffer. This is the overloaded member function when the variable name is specified in Unicode.
CONFIDENTIAL