daily pastebin goal
57%
SHARE
TWEET

parser bin

a guest Dec 9th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int parser_EmployeeFromBinary(FILE* pFile , LinkedList* pArrayListEmployee)
  2. {
  3.     Employee* empAux;
  4.    
  5.     if(pFile == NULL || pArrayListEmployee == NULL){
  6.         return -1;
  7.     }
  8.    
  9.     do
  10.     {
  11.     fread((void*)empAux, sizeof(Employee), 1, pFile); //void *ptr, size_t size, size_t nmemb, FILE *stream
  12.     if(ferror(archivo)){
  13.         return -1;
  14.     }
  15.     ll_add(pArrayListEmployee, (void*)empAux);
  16.     }while(!feof(pFile));
  17.  
  18.     return 0;
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top