]> pd.if.org Git - pdclib/blobdiff - platform/example/functions/_PDCLIB/_PDCLIB_rename.c
Renamed some files in platform/example to match the other platforms.
[pdclib] / platform / example / functions / _PDCLIB / _PDCLIB_rename.c
diff --git a/platform/example/functions/_PDCLIB/_PDCLIB_rename.c b/platform/example/functions/_PDCLIB/_PDCLIB_rename.c
new file mode 100644 (file)
index 0000000..8ae31f6
--- /dev/null
@@ -0,0 +1,30 @@
+/* _PDCLIB_rename( const char *, 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 <stdio.h>
+
+#ifndef REGTEST
+#include "_PDCLIB_glue.h"
+#include <errno.h>
+
+int _PDCLIB_rename( const char * old, const char * new )
+{
+    errno = ENOTSUP;
+}
+
+#endif
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+#include <stdlib.h>
+
+int main( void )
+{
+    return TEST_RESULTS;
+}
+
+#endif