2 * collectn.c - implements variable length pointer arrays [collections].
4 * This file is public domain.
11 void collection_init(Collection
* c
)
15 for (i
= 0; i
< 32; i
++)
20 void **colln(Collection
* c
, int index
)
24 if (c
->next
== NULL
) {
25 c
->next
= malloc(sizeof(Collection
));
26 collection_init(c
->next
);
30 return &(c
->p
[index
]);
33 void collection_reset(Collection
* c
)
38 collection_reset(c
->next
);
43 for (i
= 0; i
< 32; i
++)