1 /* remove( const char * )
3 This file is part of the Public Domain C Library (PDCLib).
4 Permission is granted to use, modify, and / or redistribute at will.
7 /* This is an example implementation of remove() fit for use with POSIX kernels.
14 #include "/usr/include/errno.h"
16 extern int unlink( const char * pathname );
18 int remove( const char * pathname )
21 if ( ( rc = unlink( pathname ) ) == -1 )
25 /* See the comments on implementation-defined errno values in
39 _PDCLIB_errno = _PDCLIB_ERROR;
42 /* This should be something like EUNKNOWN. */
43 _PDCLIB_errno = _PDCLIB_ERROR;
53 #include <_PDCLIB_test.h>
57 /* Testing covered by ftell.c (and several others) */