summaryrefslogtreecommitdiff
path: root/projs/CodeBlocks/Win32Extra/setenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'projs/CodeBlocks/Win32Extra/setenv.c')
-rw-r--r--projs/CodeBlocks/Win32Extra/setenv.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/projs/CodeBlocks/Win32Extra/setenv.c b/projs/CodeBlocks/Win32Extra/setenv.c
deleted file mode 100644
index b1316935..00000000
--- a/projs/CodeBlocks/Win32Extra/setenv.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-
-
-#if !defined(__CEGCC__)
-int setenv(const char *name, const char *value, int overwrite)
-{
- char strPutEnv[512];
-
- char * hasKey = getenv ( name );
-
- if ( ( overwrite != 0 ) || ( hasKey == NULL ) )
- {
- snprintf( strPutEnv, sizeof( strPutEnv ), "%s=%s", name, value );
- strPutEnv[ sizeof( strPutEnv ) - 1 ] = '\0';
- _putenv( strPutEnv );
- }
- return 0;
-}
-#endif
-