C언어 (1) 썸네일형 리스트형 text 인풋 //importing opcode.txt FILE* fp; char opcode_input[81]; char* mod_opinput[3]; fp = fopen(OPCODE,"r"); while(fgets(opcode_input,80,fp)!=NULL){ //tokenize opcode mod_opinput[0]=strtok(opcode_input," \n\t"); mod_opinput[1]=strtok(NULL," \n\t"); mod_opinput[2]=strtok(NULL," \n\t"); //generate new node & initialize Opcode* op_mem = (Opcode*)malloc(sizeof(Opcode)); op_mem->opcodenum = strtol(mod_opinp.. 이전 1 다음