blob: bcd75b8a3a704c5a459497c83cf6359770bb4de1 [file] [log] [blame]
/*
* collectn.h - header file for 'collection' abstract data type.
*
* This file is public domain, and does not come under the NASM license.
* It, aint32_t with 'collectn.c' implements what is basically a variable
* length array (of pointers).
*/
#ifndef RDOFF_COLLECTN_H
#define RDOFF_COLLECTN_H 1
typedef struct tagCollection {
void *p[32]; /* array of pointers to objects */
struct tagCollection *next;
} Collection;
void collection_init(Collection * c);
void **colln(Collection * c, int index);
void collection_reset(Collection * c);
#endif