Programming, System Programming, Win32, C.
cwd) == 0) ExitSys("GetCurrentDirectory", 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 ExitProc(void) { exit(EXIT_SUCCESS); } void ExitSys(LPCTSTR lpszMsg, int status)