1.2.7.4.37 SYS_FS_CurrentDriveGet Function

C

SYS_FS_RESULT SYS_FS_CurrentDriveGet
(
    char* buffer
);

Summary

Gets the current drive

Description

This function gets the present drive being used. The drive information is populated in the buffer.

Precondition

The disk has to be mounted.

Parameters

ParamDescription
bufferPointer to buffer which will hold the name of present drive being used.

Returns

SYS_FS_RES_SUCCESS - Current drive get operation was successful.

SYS_FS_RES_FAILURE - Current drive get operation was unsucessful. The reason for the failure can be retrieved with SYS_FS_Error.

Example

SYS_FS_RESULT res;
char buffer[255];

res = SYS_FS_CurrentDriveGet(buffer);
if(res == SYS_FS_RES_FAILURE)
{
    // Operation failed.
}

Remarks

None.