Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. /*allocate an array of gob_idx_entry`s that is the size of a gob_idx_entry times the number of entries*/
  2. struct gob_idx_entry* dark_idx = util_alloc(sizeof(struct gob_idx_entry) * current_mastern);
  3.  
  4. /*read the data into the index*/
  5. rb->read(dark_file, dark_idx, sizeof(struct gob_idx_entry) * current_mastern);
  6.  
  7. /*splash the filename of the first index entry*/
  8. rb->splash(HZ, dark_idx[0].filename);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement