CdSearchFile

Gets location and size of a CD-ROM file

CdlFILE *CdSearchFile (
        CdlFILE *fp ,
        char *name
)

Arguments

fp Pointer to CD-ROM file structure for storing the result
name Filename

Return Value

If the file was found on the CD-ROM, fp, the pointer to the CD-ROM file structure is returned.
0 is returned if the file was not found.
-1 is returned if an error occurred.

Explanation

The location of the file on the CD-ROM specified by name is obtained (in minutes, seconds, sectors) and the result is stored in the CD-ROM file structure pointed to by fp.

Notes

The filename must be specified as an absolute path.
When the same directory is accessed repeatedly, the file location information is cached to improve performance.