-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
26 lines (23 loc) · 1.12 KB
/
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bnaji <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/06/02 08:35:28 by bnaji #+# #+# */
/* Updated: 2021/06/02 08:35:38 by bnaji ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef UNISTD_H
# define UNISTD_H
# include <unistd.h>
#endif
int is_valid_condition(char *cond);
int rush(void);
int main(int argc, char *argv[])
{
if (argc != 2 || !(is_valid_condition(argv[1]) && rush()))
write(1, "Error\n", 6);
return (0);
}