From 2a99d7a7346fcc3f7a4d0a270bd1339324ec919c Mon Sep 17 00:00:00 2001 From: Adrien VAN DAMME Date: Sun, 2 Apr 2017 17:00:23 +0200 Subject: [PATCH] ... --- VANDAMME28.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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() +}