10.07.2015 Views

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>DOS Directory FunctionsDIRFindFirst -- Find first directory entry starting at pathDescription:Prototype:Inputs:Returns:This is called first when trying to get directory information.short DIRFindFirst(char *path, struct dirent *dp);path is a pointer to the path from which to start the searchdp is a pointer to a directory entry structureAn error code which could be dirErrorStart = DIR_ERRORS or dsdEndOfDir (end of directoryreached)DIRFreeSpace -- Return free space on specified driveDescription:Prototype:Inputs:Returns:Return free space on specified drivelong DIRFreeSpace(char *drive);drive is, for example, “c:\\”The number of free bytes as a longDIRFindEnd -- Conclude directory searchDescription:Prototype:Inputs:Returns:Conclude directory searchshort DIRFindEnd(struct dirent *dp);dp is a pointer to a directory entry structureAn error code which could be dirErrorStart = DIR_ERRORS or dsdEndOfDir (end of directoryreached)DIRFindNext -- Find next directory entryDescription:Prototype:Inputs:Returns:Notes:Called after an initial call to DIRFindFirst using the same pointer to directory entry. dp is filledwith the information from the next directory entry.short DIRFindNext(struct dirent *dp);dp is a pointer to a directory entry structureAn error code which could be dirErrorStart = DIR_ERRORS or dsdEndOfDir (end of directoryreached)Called after an initial call to DIRFindFirst using the same pointer to directory entry. dp is filledwith the information from the next directory entry.PERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.20 of 84<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>7/19/2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!