nn::hio::CTR::GetCurrentDirectory Function

Syntax

s32 GetCurrentDirectory(
     char *buf,
     s32 length
);

Arguments

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.

Writes the path of the current directory to buf and returns its size.

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