-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparsing.cpp
More file actions
34 lines (31 loc) · 1015 Bytes
/
parsing.cpp
File metadata and controls
34 lines (31 loc) · 1015 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
34
/* /$$$$$$ /$$ /$$ /$$ */
/*|_ $$_/ | $$ | $$$ /$$$ */
/* | $$ /$$$$$$$ /$$$$$$ | $$$$ /$$$$ /$$$$$$ /$$ /$$ */
/* | $$ | $$__ $$|_ $$_/ | $$ $$/$$ $$ |____ $$| $$ /$$/ */
/* | $$ | $$ \ $$ | $$ | $$ $$$| $$ /$$$$$$$ \ $$$$/ */
/* | $$ | $$ | $$ | $$ /$$| $$\ $ | $$ /$$__ $$ >$$ $$ */
/* /$$$$$$| $$ | $$ | $$$$/| $$ \/ | $$| $$$$$$$ /$$/\ $$ */
/*|______/|__/ |__/ \___/ |__/ |__/ \_______/|__/ \__/ */
//
// @file: parsing.cpp @author: IntMaxOddity
#include "checker.hpp"
#include <sys/types.h>
#include <dirent.h>
void parsingHandler(int argc, char **argv)
{
if (access(PATH, X_OK) != 0)
{
cout << "philo binary not found" << endl;
exit(12);
}
if (opendir(PATH) != NULL)
{
cout << "PATH philo is a directory" << endl;
exit(12);
}
if (argc > 6 || argc < 5)
{
cout << "Wrong number of argument" << endl;
exit(12);
}
}