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 |
0 |
File was renamed successfully |
File was not renamed |
Side Effects
The FSerrno variable will be changed.
Remarks
None