Deletes a file.
Format
#include <stdio.h>
int remove (const char *file_spec);
Argument
- file_spec
- A pointer to the string that is an OpenVMS or a UNIX style file
specification. The file specification can include a wildcard in its
version number. So, for example, files of the form filename.txt;*
can be deleted.
Description
If you specify a directory in the file name and it is a search
list that contains an error, DEC C for OpenVMS
Systems interprets it as a file error.
The remove and delete functions are functionally equivalent in the
DEC C RTL.
See also delete in this section.
Return Values
0 | Indicates success. |
nonzero value | Indicates failure. |
Previous Page | Next Page | Table of Contents | Index