Commit 91c2cc3b642d45626d015a733c1557a8ef2e9c51
1 parent
cba93af6
Inutile
Showing
1 changed file
with
0 additions
and
34 deletions
Show diff stats
main.c~ deleted
... | ... | @@ -1,34 +0,0 @@ |
1 | -// -------------------------------------------------------- | |
2 | -// Projet IMA3 2019 - Lecture d'une bibliothèque | |
3 | -// Décompte du nombre de fautes d'orthographe dans un texte | |
4 | -// Normand Quentin & Rouillé Guillaume | |
5 | -// -------------------------------------------------------- | |
6 | - | |
7 | -#include "tree.h" | |
8 | - | |
9 | -int main(int argc, char *argv[]) | |
10 | -{ | |
11 | - Node tree = NULL; | |
12 | - int error = 0; | |
13 | - FILE* fp_lib; | |
14 | - FILE* fp_txt; | |
15 | - fp_lib = fopen(argv[argc-2], "r"); | |
16 | - fp_txt = fopen(argv[argc-1], "r"); | |
17 | - | |
18 | - init_tree(&tree); | |
19 | - read_lib(fp_lib, &tree); | |
20 | - read_txt(fp_txt, &tree, &error); | |
21 | - | |
22 | - // printf("%p\n", tree); | |
23 | - | |
24 | - //print_first(tree); | |
25 | - //printf("\n"); | |
26 | - //print_tree(tree, 0); | |
27 | - | |
28 | - printf("erreurs : %d\n", error); | |
29 | - | |
30 | - free_tree(&tree); | |
31 | - free(fp_lib); | |
32 | - free(fp_txt); | |
33 | - return EXIT_SUCCESS; | |
34 | -} | |
35 | 0 | \ No newline at end of file |