FSrenamepgm Function

Microchip MDD File System Interface

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

The Fsrenamepgm function will copy the rom fileName specified by the user into a RAM array and pass that array into the FSrename function.

Preconditions

File opened.

Parameters
Parameters 
Description 
fileName 
The new name of the file (in ROM) 
fo 
The file to rename 
Return Values
Return Values 
Description 
File renamed successfully 
-1 
File could not be renamed 
Side Effects

The FSerrno variable will be changed.

Remarks

This function is for use with PIC18 when passing arguments in ROM.

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