[過去ログ] OSを1行で作るスレ (982レス)
上下前次1-新
このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
964(1): 2011/09/25(日)00:00 AAS
int main(void) { while(1){ int loop_shell,count_command; char command[100]; char command_tmp;
printf("こまんどー > ");for(count_command=0;count_command<100;count_command++) {scanf("%c",&command_tmp);
if(command_tmp=='\n') { command[count_command]='\0'; break;} else {command[count_command]=command_tmp;} }
if(strcmp(command,"test") == 0) {printf("テスト\n");} else if(strcmp(command,"exit")==0) {exit(0);}
else if(strcmp(command,"ver")==0) {printf("version 0.00000001\n");}
else if(strcmp(command,"\0")==0) { printf("");} else if(strcmp(command,"help")==0) {printf("test\nver\nexit\nhelp\n");}
else{printf("%s :command not found.\n",command); }} printf("Kernel Panic!!"); }
上下前次1-新書関写板覧索設栞歴
あと 18 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル
ぬこの手 ぬこTOP 0.006s