]> pd.if.org Git - pdclib/blob - functions/stdio/remove.c
510a4e283c76828030c6b6e15a0be0e7f91f8e77
[pdclib] / 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 #include <stdio.h>
10
11 #ifndef REGTEST
12 #include <_PDCLIB_glue.h>
13
14 int remove( const char * filename )
15 {
16     /* TODO: Check open file list, flush and close file if open */
17     return _PDCLIB_remove( filename );
18 }
19
20 #endif
21
22 #ifdef TEST
23 #include <_PDCLIB_test.h>
24
25 int main( void )
26 {
27 #ifndef REGTEST
28     TESTCASE( NO_TESTDRIVER );
29 #else
30     puts( "No testing of remove() - test driver does not know internals of system function." );
31 #endif
32     return TEST_RESULTS;
33 }
34
35 #endif