]> pd.if.org Git - pdclib/blobdiff - platform/win32/functions/stdlib/getenv.c
Initial pass at a port to win32
[pdclib] / platform / win32 / functions / stdlib / getenv.c
diff --git a/platform/win32/functions/stdlib/getenv.c b/platform/win32/functions/stdlib/getenv.c
new file mode 100644 (file)
index 0000000..a95171d
--- /dev/null
@@ -0,0 +1,32 @@
+/* $Id$ */
+
+/* getenv( const char * )
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+/* This is a stub implementation of getenv
+*/
+
+#include <string.h>
+#include <stdlib.h>
+
+#ifndef REGTEST
+
+char * getenv( const char * name )
+{
+    return NULL;
+}
+
+#endif
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main( void )
+{
+    return TEST_RESULTS;
+}
+
+#endif