FormatDirName Function

Microchip MDD File System Interface

MDDFS Interface Library Help
FormatDirName Function
C
BYTE FormatDirName(
    char * string, 
    BYTE mode
);
Description

Format an 8.3 filename into directory structure format. If the name 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 directory name are valid in this filesystem.

Preconditions

This function should not be called by the user.

Parameters
Parameters 
Description 
string 
The name to be formatted 
mode 
  • TRUE - Partial string search characters are allowed
  • FALSE - Partial string search characters are forbidden

 

Return Values
Return Values 
Description 
TRUE 
The name was formatted correctly 
The name contained invalid characters 
Side Effects

None

Remarks

None.

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