FSrename Function

Microchip MDD File System Interface

MDDFS Interface Library Help
FSrename Function
C
int FSrename(
    const char * fileName, 
    FSFILE * fo
);
Description

The FSrename function will rename a file. First, it will search through the current working directory to ensure the specified new filename is not already in use. If it isn't, the new filename will be written to the file entry of the file pointed to by 'fo.'

Preconditions

File opened.

Parameters
Parameters 
Description 
fileName 
The new name of the file 
fo 
The file to rename 
Return Values
Return Values 
Description 
File was renamed successfully 
EOF 
File was not renamed 
Side Effects

The FSerrno variable will be changed.

Remarks

None

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