]> pd.if.org Git - pdclib/blob - functions/stdio/rename.c
Porting current working set from CVS.
[pdclib] / functions / stdio / rename.c
1 /* $Id$ */
2
3 /* Release $Name$ */
4
5 /* rename( const char *, 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 rename( const char * old, const char * new )
17 {
18     /* TODO: Search open file list, flush and close file */
19     return _PDCLIB_rename( old, new );
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