GetEnvironmentVariable

nn::hio::CTR::GetEnvironmentVariable Function

Syntax

Result GetEnvironmentVariable(
     s32 * pLength,
     char * buf,
     s32 length,
     const char * name
);

s32 GetEnvironmentVariable(
     char * buf,
     size_t length,
     const char * name
);

Result GetEnvironmentVariable(
     s32 * pLength,
     wchar_t * buf,
     s32 length,
     const wchar_t * name
);

s32 GetEnvironmentVariable(
     wchar_t * buf,
     s32 length,
     const wchar_t * name
);

List of Overloaded Member Functions

GetEnvironmentVariable(s32 *, char *, s32, const char *) Gets the environment variable and returns the result of the process.
GetEnvironmentVariable(char *, size_t, const char *) Gets the environment variable and returns the number of bytes copied to the buffer.
GetEnvironmentVariable(s32 *, wchar_t *, s32, const wchar_t *) 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.
GetEnvironmentVariable(wchar_t *, s32, const wchar_t *) 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.

Description of GetEnvironmentVariable(s32 *, char *, s32, const char *)

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.

Description of GetEnvironmentVariable(char *, size_t, const char *)

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.

Description of GetEnvironmentVariable(s32 *, wchar_t *, s32, const wchar_t *)

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.

Description of GetEnvironmentVariable(wchar_t *, s32, const wchar_t *)

The value of the environment variable specified by name is stored in buf.
Even 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