Skip to content

Commit b373810

Browse files
authored
C code :)
👍
1 parent 18c3c15 commit b373810

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

usr/bin/tiny-term.c

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#include <stdio.h>
2+
#include <stdlib.h>
3+
4+
#define true 1
5+
6+
void help() {
7+
printf("1 shows more commands");
8+
}
9+
10+
int main()
11+
{
12+
char a[100];
13+
int choice = 0;
14+
15+
printf("welcome to tiny termianal\n type 1 to see more commands\n\n");
16+
17+
18+
printf(">>>");
19+
fflush(stdin);
20+
scanf("%s", a);
21+
22+
switch (choice) {
23+
case 1:
24+
help();
25+
break;
26+
}
27+
28+
return 0;
29+
30+
}

0 commit comments

Comments
 (0)