RENAME - rename a file.

(ANSI Standard)


#include <stdio.h>
stat = rename(const char *oldname,const char *newname);


const char *oldname;
is the current name of a file.
const char *newname;
is a new name you want to give to the file.
int stat;
is zero if the operation succeeds and non-zero otherwise.


"rename" attempts to change the name of a file. Under GCOS-8, the new file name must be in the same catalog as the old one.

Copyright © 1996, Thinkage Ltd.