Programming, System Programming, Win32, C.
EXIT_FAILURE); printf("%s\n\n", cwd); return; } if (g_nparams > 2) { printf("too many arguments...\n\n"); return; } if (!SetCurrentDirectory(g_params[1])) PrintSysErr(); } void GetEnvProc(void) { char buf[1024]; char *envs; if (g_nparams == 1) { if ((envs = GetEnvironmentStrings()) == NULL)