C Programming/stdio.h/remove

remove is a function in C programming language that removes a certain file. It is included in the C standard library header file.

The prototype of the function is as follows:

If successful, the function returns zero. Nonzero value is returned on failure and  variable is set to corresponding error code.

Sample usage
The following program demonstrates common usage of :

To implement a simple remove utility: