This commit is contained in:
Adrien VAN DAMME 2017-04-02 17:00:23 +02:00
parent c1b425991b
commit 2a99d7a734
1 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,16 @@
/*
* Fichier client :
------------------------------------------------------------
|UINTL NBClients|Bool Tri| Client 0 | Client 1 | .......ETc|
------------------------------------------------------------
*/
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
@ -70,6 +83,7 @@ FILE * localiserFichierClients(char *);
int ajouterClientBin(FILE *, Client *); int ajouterClientBin(FILE *, Client *);
int compNP(char *, char *,char *, char *); int compNP(char *, char *,char *, char *);
void qSortClientBinByNP(FILE *); void qSortClientBinByNP(FILE *);
void clientBinToTXT(FILE * bin, FILE* txt);
int main() 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()
}