We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18c3c15 commit b373810Copy full SHA for b373810
usr/bin/tiny-term.c
@@ -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