xref: /original-bsd/lib/libc/stdio/remove.3 (revision 95a66346)
Copyright (c) 1990 The Regents of the University of California.
All rights reserved.

This code is derived from software contributed to Berkeley by
Chris Torek.

%sccs.include.redist.man%

@(#)remove.3 5.1 (Berkeley) 03/05/91

REMOVE 3 ""
C 7
NAME
remove - remove directory entry
SYNOPSIS
int
remove(char *path);
DESCRIPTION
Remove is an alias for the unlink (2) system call. It deletes the file referenced by path .
"SEE ALSO"
unlink(2)
"RETURN VALUE"
Upon successful completion, remove returns 0. Otherwise, -1 is returned and the global variable errno is set to indicate the error.
ERRORS
Remove may fail and set errno for any of the errors specified for the routine unlink (2).
STANDARDS
The remove function conforms to ANSI X3.159-1989 (``ANSI C'').