setenv.c

00001 #ifndef HAVE_SETENV
00002 #include <windows.h>
00003 
00004 int setenv (const char *name, const char *value, int overwrite)
00005 {
00006     return SetEnvironmentVariableA(name, value) == 0 ? -1 : 0;
00007 }
00008 #else
00009 int setenv (const char *name, const char *value, int overwrite);
00010 #endif

←Products
© 2005-2012 - KoanLogic S.r.l. - All rights reserved