RENAME - rename a file.

(ANSI Standard)

Usage:

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

Where:

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.

Description:

"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.