-
Notifications
You must be signed in to change notification settings - Fork 0
/
Black.h
40 lines (33 loc) · 811 Bytes
/
Black.h
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
34
35
36
37
38
39
40
#ifndef BLACK_H_
#define BLACK_H_
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#define BIN_PATH "/bin/"
#define BLACK_PATH "/home/braude/"
#define BUFF 256 //used in the input length - command and flags length
enum Command {
CREATE_FLYER, //0
GET_FLYER, //1
MAKE_ORDER, //2
GET_NUM_COMP, //3
GET_ORDER_NUM, //4
GET_SUMMARY, //5
END_RUN, //6
COMMAND_END //7
};
static const char *command_str[COMMAND_END] = {
"CreateFlyer", //0
"GetFlyer", //1
"MakeOrder", //2
"GetNumComp", //3
"GetOrderNum", //4
"GetSummary", //5
"exit" //6
};
int execute_bin(char * cmd, char * path);
char * strIncrease(char *str);
#endif