Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- short retour = 1;
- long offset;
- Ouvrier *pOuvrierTemp ;
- FILE *pf = fopen(F_OUVRIER,"rb");/*on ouvre le fichier ouvrier, il existe obligatoirement car index_int est appelé apres ouvrier_init*/
- if(pf == NULL)
- {
- perror("Fichier ouvrier manquant.");
- retour = 0;
- }
- else
- {
- printf("recréation de l'index...");
- while(feof(pf) == 0 && retour != 0)
- {
- if(fread(pOuvrierTemp,(long)sizeof(Ouvrier),1,pf) != 1)
- {
- perror("Erreur de lecture du fichier ouvrier");
- retour = 0;
- }
Add Comment
Please, Sign In to add comment