The function frename replaces the name of a file. The parameter oldname is a character pointer specifying the current name of the file. The parameter newname is a character pointer specifying the new name of the file. The function is included in the library RL-FlashFS. The prototype is defined in the file rtl.h. The parameter oldname can contain a drive prefix and, for FAT media, path information. The following values are allowed for the parameter oldname: | Drive Prefix | Description |
|---|
| "" | Default System drive as specified in the file File_Config.c | | "F:" or "F0:" | Flash drive | | "S:" or "S0:" | SPI Flash drive | | "R:" or "R0:" | RAM drive | | "M:" or "M0:" | Memory Card drive 0 | | "M1:" | Memory Card drive 1 | | "U:" or "U0:" | USB Flash drive 0 | | "U1:" | USB Flash drive 1 | | "N:" or "N0:" | NAND Flash drive |
|