rename()

This is a File I/O function. It is not implemented in the Compiler.

Syntax
  #include <stdio.h>

  
  int rename(const char *from, const char *to);

  
Description

rename() renames the from file to to. If there already is a to file, rename() does not change anything and returns with an error code.

Return

Non-zero, if there was an error; zero otherwise.

See also

tmpfile() and

tmpnam()