Small cleanup of extensions code
[AROS.git] / compiler / clib / unlink.c
blob01964b8f3143cb5269d15baccf8a07494bc48621
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Delete a file.
6 */
8 #include <stdio.h>
10 /*****************************************************************************
12 NAME */
13 #include <unistd.h>
15 int unlink (
17 /* SYNOPSIS */
18 const char * pathname)
20 /* FUNCTION
21 Delete a file from disk.
23 INPUTS
24 pathname - Complete path to the file
26 RESULT
27 0 on success and -1 on error. In case of an error, errno is set.
29 NOTES
30 Identical to remove
32 EXAMPLE
33 // Delete the file xyz in the current directory
34 unlink ("xyz");
36 BUGS
38 SEE ALSO
40 INTERNALS
42 ******************************************************************************/
44 return remove(pathname);
45 } /* unlink */