equal
deleted
inserted
replaced
10 |
10 |
11 void showhelp(void) { |
11 void showhelp(void) { |
12 printf("\nCanFestival kernel test example console\n\n"); |
12 printf("\nCanFestival kernel test example console\n\n"); |
13 |
13 |
14 printf("start - start example\n"); |
14 printf("start - start example\n"); |
15 printf("end - end example\n"); |
15 printf("stop - stop example\n"); |
16 printf("quit - quit console\n"); |
16 printf("quit - quit console\n"); |
17 printf("\n"); |
17 printf("\n"); |
18 } |
18 } |
19 |
19 |
20 int main(int argc,char *argv[]) |
20 int main(int argc,char *argv[]) |
40 scanf ("%s", &command); |
40 scanf ("%s", &command); |
41 |
41 |
42 if (strcmp(command,"start") == 0) |
42 if (strcmp(command,"start") == 0) |
43 cmd = CMD_START; |
43 cmd = CMD_START; |
44 |
44 |
45 else if (strcmp(command,"end") == 0) |
45 else if (strcmp(command,"stop") == 0) |
46 cmd = CMD_STOP; |
46 cmd = CMD_STOP; |
47 |
47 |
48 else if (strcmp(command,"quit") == 0) |
48 else if (strcmp(command,"quit") == 0) |
49 break; |
49 break; |
50 |
50 |