GetPreviousEntry Function

Microchip MDD File System Interface

MDDFS Interface Library Help
GetPreviousEntry Function
C
BYTE GetPreviousEntry(
    FSFILE * fo
);
Description

The GetPreviousEntry function is used by the FSgetcwd function to load the previous (parent) directory. This function will load the parent directory and then search through the file entries in that directory for one that matches the cluster number of the original directory. When the matching entry is found, the name of the original directory is copied into the 'fo' FSFILE object.

Preconditions

Should not be called by the user.

Parameters
Parameters 
Description 
fo 
The file to get the previous entry of 
Return Values
Return Values 
Description 
The previous entry was successfully retrieved 
-1 
The previous entry could not be retrieved 
Side Effects

None

Remarks

None.

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