]> pd.if.org Git - pdclib/blob - platform/gandr/functions/stdio/remove.c
PDCLib includes with quotes, not <>.
[pdclib] / platform / gandr / functions / stdio / remove.c
1 /* remove( const char * )
2
3    This file is part of the Public Domain C Library (PDCLib).
4    Permission is granted to use, modify, and / or redistribute at will.
5 */
6
7 /* This is an example implementation of remove() fit for use with POSIX kernels.
8 */
9
10 #include <stdio.h>
11
12 #ifndef REGTEST
13
14 #include <string.h>
15 #include <errno.h>
16
17 extern struct _PDCLIB_file_t * _PDCLIB_filelist;
18
19 int remove( const char * pathname )
20 {
21     errno = ENOTSUP;
22     return 1;
23 }
24
25 #endif
26
27 #ifdef TEST
28 #include "_PDCLIB_test.h"
29
30 int main( void )
31 {
32     /* Testing covered by ftell.c (and several others) */
33     return TEST_RESULTS;
34 }
35
36 #endif
37