diff --git a/VANDAMME28.c b/VANDAMME28.c index 7a1f5ab..57668c2 100644 --- a/VANDAMME28.c +++ b/VANDAMME28.c @@ -1,3 +1,16 @@ +/* + * Fichier client : + ------------------------------------------------------------ + |UINTL NBClients|Bool Tri| Client 0 | Client 1 | .......ETc| + ------------------------------------------------------------ + + +*/ + + + + + #include #include #include @@ -70,6 +83,7 @@ FILE * localiserFichierClients(char *); int ajouterClientBin(FILE *, Client *); int compNP(char *, char *,char *, char *); void qSortClientBinByNP(FILE *); +void clientBinToTXT(FILE * bin, FILE* txt); int main() { @@ -651,3 +665,10 @@ void qSortClientBinByNP(FILE * clientF) } } } +void clientBinToTXT(FILE * bin, FILE* txt) +{ + fseek(bin, 0, SEEK_SET);fseek(txt, 0, SEEK_SET); + fseek(bin, sizeof(unsigned long int)); + fseek(bin, sizeof(Bool)); + fread() +}