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