X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fremove.c;fp=functions%2Fstdio%2Fremove.c;h=ec7941b1f9f8136698134c18d3b13f79a9ad846c;hb=d02f38605b53cdff5460cc6b9e1b2a80c3a2ba4c;hp=0000000000000000000000000000000000000000;hpb=3f6094115e79a45413f08361b68b71eb08da306e;p=pdclib diff --git a/functions/stdio/remove.c b/functions/stdio/remove.c new file mode 100644 index 0000000..ec7941b --- /dev/null +++ b/functions/stdio/remove.c @@ -0,0 +1,33 @@ +/* $Id$ */ + +/* Release $Name$ */ + +/* remove( const char * ) + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +#include + +#ifndef REGTEST +#include <_PDCLIB_glue.h> + +int remove( const char * filename ) +{ + /* TODO: Check open file list, flush and close file if open */ + return _PDCLIB_remove( filename ); +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + TESTCASE( NO_TESTDRIVER ); + return TEST_RESULTS; +} + +#endif