411 REFERENCE · Wikibooks
C++ Programming/Code/Standard C Library/Functions/rename
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
rename
#include <cstdio>
int rename( const char *oldfname, const char *newfname );
The function rename() changes the name of the file oldfname to newfname. The return value of rename() is zero upon success, non-zero on error.
Related topics remove