[Previous]
[Contents]
[Next]

remove()

delete a file

Synopsis:

#include <stdio.h>
int remove( const char *filename );

Description:

The remove() function deletes the file whose name is the string pointed to by filename.

Returns:

Zero if the operation succeeds, nonzero if it fails. When an error has occurred, errno indicates the type of error detected.

Examples:

#include <stdio.h>

void main()
  {
    remove( "vm.tmp" );
  }

Classification:

ANSI

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

errno, unlink()


[Previous]
[Contents]
[Next]