Table of Contents
Previous Section Next Section

remove

#include <stdio.h>int remove(const char *fname);

The remove( ) function erases the file specified by fname. It returns zero if the file was successfully deleted and nonzero if an error occurred.

A related function is rename( ).


Table of Contents
Previous Section Next Section