nn::hio::CTR::GetEnvironmentVariable Function

Syntax

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

Arguments

Name Description
pLength
out buf Pointer to the buffer that will store the environment variable.
in length Buffer size.
in name Name of the environment variable.

Return Values

Returns the actual number of bytes that were copied. If an error occurred, returns -1.

Description

Gets the value of an environment variable.

Revision History

2010/03/31
Initial version.

CONFIDENTIAL