프로젝트/Pint OS
[Pint OS] Argument Passing
Requirement thread.h에 #define USERPROG 선언 process_exec() 함수 수정 /* Switch the current execution context to the f_name. * Returns -1 on fail. */ int process_exec (void *f_name) { /* ... */ /* for project 2 * todo: implementation argument passing */ int argc = 0; char *argv[64]; char *ret_ptr, *next_ptr; ret_ptr = strtok_r(file_name, " ", &next_ptr); while(ret_ptr) { argv[argc++] = ret_ptr; ret_ptr..