]> pd.if.org Git - pdclib.old/blob - functions/stdio/remove.c
Porting current working set from CVS.
[pdclib.old] / functions / stdio / remove.c
1 /* $Id$ */
2
3 /* Release $Name$ */
4
5 /* remove( const char * )
6
7    This file is part of the Public Domain C Library (PDCLib).
8    Permission is granted to use, modify, and / or redistribute at will.
9 */
10
11 #include <stdio.h>
12
13 #ifndef REGTEST
14 #include <_PDCLIB_glue.h>
15
16 int remove( const char * filename )
17 {
18     /* TODO: Check open file list, flush and close file if open */
19     return _PDCLIB_remove( filename );
20 }
21
22 #endif
23
24 #ifdef TEST
25 #include <_PDCLIB_test.h>
26
27 int main( void )
28 {
29     TESTCASE( NO_TESTDRIVER );
30     return TEST_RESULTS;
31 }
32
33 #endif