18.4. Changing the Name of a File: rename()
The rename() system call can be used both to rename a file and to move it into another directory on the same file system.
#include <stdio.h>
int rename(const char *oldpath, const char *newpath);
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial