GetCurrentDirectory

nn::hio::CTR::GetCurrentDirectory Function

Syntax

Result GetCurrentDirectory(
     s32 * pLength,
     char * buf,
     s32 length
);

Result GetCurrentDirectory(
     s32 * pLength,
     wchar_t * buf,
     s32 length
);

s32 GetCurrentDirectory(
     char * buf,
     s32 length
);

s32 GetCurrentDirectory(
     wchar_t * buf,
     s32 length
);

List of Overloaded Member Functions

GetCurrentDirectory(s32 *, char *, s32) Gets the current directory and returns the result of the process.
GetCurrentDirectory(s32 *, wchar_t *, s32) Gets the current directory and returns the result of the process. This is the overloaded function when the path is gotten in Unicode.
GetCurrentDirectory(char *, s32) Gets the current directory and returns the size stored to the buffer.
GetCurrentDirectory(wchar_t *, s32) Gets the current directory and returns the size stored to the buffer. This is the overloaded function when the path is gotten in Unicode.

Description of GetCurrentDirectory(s32 *, char *, s32)

Writes the path of the current directory to buf.

Description of GetCurrentDirectory(s32 *, wchar_t *, s32)

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

Description of GetCurrentDirectory(char *, s32)

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

Description of GetCurrentDirectory(wchar_t *, s32)

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.


CONFIDENTIAL