FindEmptyEntries Function

Microchip MDD File System Interface

MDDFS Interface Library Help
FindEmptyEntries Function
C
BYTE FindEmptyEntries(
    FILEOBJ fo, 
    WORD * fHandle
);
Description

This function will cache directory entries, starting with the one pointed to by the fHandle argument. It will then search through the entries until an unused one is found. If the end of the cluster chain for the directory is reached, a new cluster will be allocated to the directory (unless it's a FAT12 or FAT16 root) and the first entry of the new cluster will be used.

Preconditions

This function should not be called by the user.

Parameters
Parameters 
Description 
fo 
Pointer to file structure 
fHandle 
Start of entries 
Return Values
Return Values 
Description 
TRUE 
One found 
None found 
Side Effects

None

Remarks

None.

Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.