Posted to tcl by patthoyts at Tue Apr 17 10:56:41 GMT 2007view pretty

/* builds with cl -nologo -W3 -MD z.c  */
-#define STRICT
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
    if (argc != 3) {
        printf("error: z namne value\n");
        return -1;
    }
    SetEnvironmentVariableA(argv[1], argv[2]);
    return 0;
}