mfsHGetCwd


Format: s32 mfsHGetCwd(u8* path, s32 bufLen)

Arguments:

*path Buffer for storing full pathname
bufLen Buffer size

Return value:Error

Function: Obtains current directory

Description: This function obtains the full pathname (including drive name) of the current directory and stores it, up to a maximum size of bufLen, in path. If the size of the full pathname (including the terminating NULL) is greater than bufLen, MFS_ERR_LENGTH is returned as an error.

Main errors:

MFS_ERR_NO	Normal termination
MFS_ERR_LENGTH	The length of the full pathname is larger than bufLen.