-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.c
More file actions
27 lines (24 loc) · 660 Bytes
/
Main.c
File metadata and controls
27 lines (24 loc) · 660 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
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "FoncString.h"
#include "Debug.h"
#include "Cmd.h"
#define _GNU_SOURCE
// int ddddd = 3;
// #define nomF = "Cmd.txt";
int main(int argc, char* argv[]){ // lire un efichier en entré
if(argc < 2){
printf("Veuiller enter le fichier");
}else{
char *nomF = argv[1];
//-------------initialisation ----------------------
noeud *root = init();
noeud *p_actuel = root;
bool d = executer(nomF,root,p_actuel);
if(DEBUG) printf("\n%d\n",d);
printf("\n%d\n",d);
suppression_sous_arbre_2(root,NULL);
}
return 0;
}