Appearance
rename() - rename a file
int rename( string src, string dst );
Renames the file <src> to <dst>.
rename() returns zero (0) to indicate success. Nonzero indicates fail‐ ure.
rm(3), rmdir(3), cp(3), link(3)