remove

Delete a file.

int remove (const char * path);

Required Header
<io.h>

Return Value

This function returns 0 if the operation was successful. -1 indicates an error.

Parameters

path

  The PS file or PO (member) to delete

Remarks

The remove function first checks if the file exists, then checks that the file is able to be written before deleting the file (sequential or partitioned) or removing the directory entry (partitioned).

Low Level I/O

See Also    _open, rename, _unlink