Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
320 B

  1. #include <stdlib.h>
  2. #include "byte.h"
  3. #include "iob_internal.h"
  4. void iob_reset(io_batch* b) {
  5. unsigned long i,l;
  6. iob_entry* x=array_start(&b->b);
  7. l=array_length(&b->b,sizeof(iob_entry));
  8. for (i=0; i<l; ++i) {
  9. if (x[i].cleanup)
  10. x[i].cleanup(x+i);
  11. }
  12. array_reset(&b->b);
  13. byte_zero(b,sizeof(*b));
  14. }