DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

remove(S-osr5)


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 .


© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005