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 |
0 |
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.