Programming, System Programming, Win32, C.
buf); } void SetEnvProc(void) { if (g_nparams == 1) { printf("argument missing...\n\n"); return; } if (g_nparams > 3) { printf("too many arguments..\n\n"); return; } if (!SetEnvironmentVariable(g_params[1], g_nparams == 3 ? g_params[2] : NULL)) { PrintSysErr(); return; } } void RunProcess(void) {