ftp.delorie.com/djgpp/doc/libc/libc_659.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

remove

Syntax

 
#include <stdio.h>

int remove(const char *file);

Description

This function removes the named file from the file system. Unless you have an un-erase program, the file and its contents are gone for good.

Return Value

Zero on success, nonzero on failure.

Portability

ANSI/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001

Example

 
remove("/tmp/data.tmp");


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004