rename()

This is a file I/O function, also hardware dependent. It is not implemented in this 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 an error occurred; zero otherwise.

See also

tmpfile()

tmpnam()