X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fwin32%2Ffunctions%2Fstdlib%2Fgetenv.c;fp=platform%2Fwin32%2Ffunctions%2Fstdlib%2Fgetenv.c;h=a95171d9ab2cb4300a8103e5b9b62e93b9459695;hb=d8928b5f31bbdac23f9ec296ef28b4b10efa31d5;hp=0000000000000000000000000000000000000000;hpb=219271fd548949abce8bd75c34dd42e519418fc4;p=pdclib diff --git a/platform/win32/functions/stdlib/getenv.c b/platform/win32/functions/stdlib/getenv.c new file mode 100644 index 0000000..a95171d --- /dev/null +++ b/platform/win32/functions/stdlib/getenv.c @@ -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 +#include + +#ifndef REGTEST + +char * getenv( const char * name ) +{ + return NULL; +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif