nn::hio::CTR::GetEnvironmentVariable FunctionResult GetEnvironmentVariable( s32 * pLength, char *buf, s32 length, const char * name );
| Name | Description | |
|---|---|---|
| out | pLength | Location in which to store the actual number of bytes that were copied. |
| out | buf | Pointer to the buffer that will store the environment variable. |
| in | length | Buffer size. |
| in | name | Name of the environment variable. |
nn::Result::IsSuccess function. Gets the environment variable and returns the result of the process.
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.
CONFIDENTIAL