]> pd.if.org Git - pdclib/blob - functions/stdio/remove.c
0318c21d7cbeef2cf81049db8658447dc46d11f7
[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     TESTCASE( NO_TESTDRIVER );
28     return TEST_RESULTS;
29 }
30
31 #endif