-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.c
33 lines (33 loc) · 799 Bytes
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "include/help.h"
#include "include/report.h"
#include "include/say.h"
#include "include/buy.h"
#include "include/sell.h"
int main(int argc, char *argv[]) {
if (argc<2) {
printf("Welcome to Robson 0.01\n");
} else {
if (strcmp(argv[1], "--help")==0) {
rbs_openscreen_help(); return 0;
}
else if (strcmp(argv[1], "--report")==0) {
rbs_openscreen_report(); return 0;
}
else if (strcmp(argv[1], "--say")==0) {
rbs_openscreen_say(); return 0;
}
else if (strcmp(argv[1], "--buy")==0) {
rbs_openscreen_buy(); return 0;
}
else if (strcmp(argv[1], "--sell")==0) {
rbs_openscreen_sell(); return 0;
}
else {
printf("Type --help. Invalid argument %s\n", argv[1]);
}
}
}