-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
33 lines (26 loc) · 652 Bytes
/
Copy pathmain.h
File metadata and controls
33 lines (26 loc) · 652 Bytes
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
#ifndef MAIN_H
#define MAIN_H
#define MAX_COMMAND_LENGTH 128
#define MAX_LINE_LENGTH 256
#define MAX_COMMAND_NUMBER 200
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string>
#include <string.h>
#include <iostream>
#include <fstream>
#include <dirent.h>
const char *listdirCmd="listdir";
const char *mycomputernameCmd="mycomputername";
const char *whatsmyipCmd="whatsmyip";
const char *printfileCmd="printfile";
const char *dididothatCmd="dididothat";
const char *hellotextCmd="hellotext";
const char *exitCmd="exit";
char *command;
char *fileName;
char line[MAX_LINE_LENGTH];
char **allCommands;
int commandNumber;
#endif