12 lines
180 B
C
12 lines
180 B
C
|
int
|
||
|
main(int argc, char **argv) {
|
||
|
static char buf[256];
|
||
|
while (1) {
|
||
|
char *com = fgets(buf, sizeof(buf), stdin);
|
||
|
if (com != NULL) {
|
||
|
commands[com[0]]();
|
||
|
}
|
||
|
}
|
||
|
return 0;
|
||
|
}
|