Programming, System Programming, Win32, C.
(!SetCurrentDirectory(g_params[1])) PrintSysErr(); } void GetEnvProc(void) { char buf[1024]; char *envs; if (g_nparams == 1) { if ((envs = GetEnvironmentStrings()) == NULL) ExitSys("GetEnvironmentStrings", EXIT_FAILURE); while (*envs != '\0') { puts(envs); envs += strlen(envs) + 1; } printf("\n");