mirror of
https://github.com/BreizhHardware/projetCGroupe8.git
synced 2026-01-18 16:37:25 +01:00
33 lines
739 B
C
33 lines
739 B
C
#define LENGTH 12600
|
|
|
|
#include "Filmotheque.h"
|
|
#include "List.h"
|
|
#include "Movie.h"
|
|
|
|
int main() {
|
|
int stop = 0;
|
|
|
|
char *fichier = "BD_big.txt";
|
|
|
|
//Create a table of list named tableau
|
|
struct List *tableau[LENGTH];
|
|
for (int i = 0; i < LENGTH; i++) {
|
|
tableau[i] = NULL;
|
|
}
|
|
struct Filmotheque *filmo = createEmptyFilmo();
|
|
initFilmo(fichier, tableau, filmo);
|
|
printf("Filmotheque initialized\n");
|
|
while (stop != 8) {
|
|
FILE *verif = fopen("requests.txt", "r");
|
|
if (verif != NULL) {
|
|
char *request = "requests.txt";
|
|
stop = readRequest(request, tableau, filmo);
|
|
}
|
|
}
|
|
|
|
deleteFilmotheque(filmo, tableau);
|
|
printf("Good bye !\n");
|
|
return 0;
|
|
}
|
|
|