FSrenamepgm Function

MDD File System Interface Library

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

Renames the file with the ascii ROM string(PIC18).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.4.2 - [Oct 15, 2012]
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.