Home > Electronics Tutorials > C Language Tutorial > stdio.h - File Functions - rename

C Language Programming Library Reference Guide

stdio.h - File Functions - rename

Declaration:

int rename(const char *old_filename, const char *new_filename); Causes the filename referred to by old_filename to be changed to new_filename. If the filename pointed to by new_filename exists, the result is implementation-defined.

On success zero is returned. On error a nonzero value is returned and the file is still accessible by its old filename.

Note: To report broken links or to submit your projects, tutorials please email to Webmaster

Discover

     more......