mirror of /home/gitosis/repositories/libowfat.git
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.
17 lines
369 B
17 lines
369 B
#include <stdlib.h> |
|
#include "iob_internal.h" |
|
|
|
io_batch* iob_new(int hint_entries) { |
|
io_batch* b=(io_batch*)malloc(sizeof(io_batch)); |
|
if (!b) return 0; |
|
if (hint_entries) { |
|
if (!array_allocate(&b->b,sizeof(io_entry),hint_entries)) { |
|
free(b); |
|
return 0; |
|
} |
|
array_trunc(&b->b); |
|
} |
|
b->next=b->bufs=b->files=0; |
|
b->bytesleft=0; |
|
return b; |
|
}
|
|
|