-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
32 lines (26 loc) · 729 Bytes
/
Copy pathmain.c
File metadata and controls
32 lines (26 loc) · 729 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
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "functions/log.h"
#include "functions/xml_parser.h"
#include "functions/xml_finder.h"
#include "functions/dtd_rules.h"
#include "functions/dtd_parser.h"
#include "functions/dtd_validation.h"
#include "tests/xml_parsing_test.h"
char *logFile = "log.txt";
void initLogFile();
int main(int argc, char **argv) {
initLogFile();
/////////////////////
run_xml_parse_test();
/////////////////////
}
void initLogFile() {
if (setLogFileName(logFile)) {
//Erreur, impossible d'avoir un fichier de log correct
fprintf(stderr, "Error! log file not set\nPress any key to close program\n");
getchar();
exit(1);
}
}