Programming, System Programming, Win32, C.
param = strtok(NULL, " \t")) g_params[g_nparams++] = param; } void DirProc(void) { printf("dir\n"); } void ClsProc(void) { if (g_nparams > 1) { printf("too many arguments...\n\n"); return; } system("cls"); } void ChDirProc(void) { char cwd[1024]; if (g_nparams == 1) { if (GetCurrentDirectory(1024,