GetCurrentDirectory

nn::hio::CTR::GetCurrentDirectory Function

Syntax

s32 GetCurrentDirectory(
     wchar_t * buf,
     s32 length
);

Parameters

Name Description
out buf Buffer in which to write the current directory's path.
in length Buffer size.

Return Values

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

Description

Gets the current directory and returns the size stored to the buffer. This is the overloaded function when the path is gotten in Unicode.

Writes the path of the current directory to buf and returns its size.
This is the overloaded function when the path is gotten in Unicode.

Revision History

2010/06/14
Added description of arguments and behavior.
2010/03/31
Initial version.

Revision History

2010/06/14
Added description of arguments and behavior.
2010/03/31
Initial version.

CONFIDENTIAL