DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

remove(S)


remove -- removes filename

Syntax

cc . . . -lc

#include  <stdio.h>

int remove(const char *path);

Description

The remove function causes the file whose name is the string pointed to by filename to be no longer accessible by that name. A subsequent attempt to open that file using that name fails, unless it is created anew. If the file is open, the behavior of the remove function is implementation-defined.

Return value

The remove function returns zero if the operation succeeds, nozero if it fails.

Standards conformance

remove is conformant with:

IEEE POSIX Std 1003.1-1990 System Application Program Interface (API) [C Language] (ISO/IEC 9945-1) ;
and NIST FIPS 151-1 .


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003