FormatFileName Function

Microchip MDD File System Interface

MDDFS Interface Library Help
FormatFileName Function
C
BYTE FormatFileName(
    const char* fileName, 
    char* fN2, 
    BYTE mode
);
Description

Format an 8.3 filename into FSFILE structure format. If filename is less than 8 chars, then it will be padded with spaces. If the extension name is fewer than 3 chars, then it will also be oadded with spaces. The ValidateChars function is used to ensure the characters in the specified filename are valid in this filesystem.

Preconditions

This function should not be called by the user.

Parameters
Parameters 
Description 
fileName 
The name to be formatted 
fN2 
The location the formatted name will be stored 
mode 
Non-zero if parital string search chars are allowed 
Return Values
Return Values 
Description 
TRUE 
Name formatted successfully 
File name could not be formatted 
Side Effects

None

Remarks

None.

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