Reference

DRIVE_FindDriveRoot(3w)

DRIVE_FindDriveRoot

NAME

DRIVE_FindDriveRoot - DRIVE_FindDriveRoot

SYNOPSIS

int DRIVE_FindDriveRoot(const char **path);

DESCRIPTION

Find a drive for which the root matches the begginning of the given path. This can be used to translate a Unix path into a drive + DOS path. Return value is the drive, or -1 on error. On success, path is modified to point to the beginning of the DOS path.

SEE ALSO

DRIVE_Init(3w), DRIVE_IsValid(3w), DRIVE_GetCurrentDrive(3w), DRIVE_SetCurrentDrive(3w), DRIVE_GetRoot(3w), DRIVE_GetDosCwd(3w), DRIVE_GetUnixCwd(3w), DRIVE_GetLabel(3w), DRIVE_GetSerialNumber(3w), DRIVE_SetSerialNumber(3w), DRIVE_GetType(3w), DRIVE_GetFlags(3w), DRIVE_Chdir(3w), DRIVE_Disable(3w), DRIVE_Enable(3w), DRIVE_SetLogicalMapping(3w), DRIVE_OpenDevice(3w), GetDiskFreeSpace16(3w), GetDiskFreeSpace32A(3w), GetDiskFreeSpace32W(3w), GetDiskFreeSpaceEx32A(3w), GetDiskFreeSpaceEx32W(3w), GetDriveType16(3w), GetDriveType32A(3w), GetDriveType32W(3w), GetCurrentDirectory16(3w), GetCurrentDirectory32A(3w), GetCurrentDirectory32W(3w), SetCurrentDirectory16(3w), SetCurrentDirectory32A(3w), SetCurrentDirectory32W(3w), GetLogicalDriveStrings32A(3w), GetLogicalDriveStrings32W(3w), GetLogicalDrives(3w), GetVolumeInformation32A(3w), GetVolumeInformation32W(3w)