Names specified here
Name Description Notes Source Availability
FILENAME_MAX Maximum filename length M <stdio.h> C89 C90 C95 C99 C11
remove() Remove file (·) <stdio.h> C89 C90 C95 C99 C11
rename() Rename file (·) <stdio.h> C89 C90 C95 C99 C11

Filenames accepted by the functions fopen, fopen_s, freopen, freopen_s, rename and remove can be of upto FILENAME_MAX characters, including a terminating null.

#include <stdio.h>
int remove(const char *name);
int rename(const char *from, const char *to);

remove deletes the file identified by the null-terminated string name. It returns zero on success, and non-zero on failure.

rename renames the file identified by the null-terminated string from to the null-terminated string to. It returns zero on success, and non-zero on failure.

File contents can also be accessed through streams.


CHaR
Sitemap Supported
Site format updated 2024-06-05T22:37:07.391+0000
Data updated 1970-01-01T00:00:00.000+0000
Page updated 2023-10-04T20:24:03.201+0000