<< Previous | Next >>

fat_OpenDir

int fat_OpenDir( fat_part *part, char *dirname, FATfile *dir );

Description

Opens a directory for use, filling in the FATfile handle.

Parameters

part
Pointer to the partition structure being used.

dirname
Pointer to the full path name of the directory to be opened or created.

dir
Pointer to directory requested.

Return Value

0: success
-EINVAL: invalid argument.
-ENOENT: the directory cannot be found.
-EBUSY: the device is busy (Only if non-blocking).

Other negative values are possible from the fat_Open() call.

Library

FAT.LIB

See Also

fat_ReadDir, fat_Status, fat_Open, fat_Close


Dynamic C Functions << Previous | Next >> rabbit.com