rename a file
#include <stdio.h> int rename( const char *old, const char *new );
The rename() function causes the file whose name is indicated by the string old to be renamed to the name given by the string new.
The rename() function returns zero if the operation succeeds, a non-zero value if it fails. When an error has occurred, errno contains a value that indicates the type of error that has been detected.
#include <stdio.h> void main() { rename( "old.dat", "new.dat" ); }
ANSI
All (except Netware, DOS/PM)