collectn.h 579 B

12345678910111213141516171819202122
  1. /*
  2. * collectn.h - header file for 'collection' abstract data type.
  3. *
  4. * This file is public domain, and does not come under the NASM license.
  5. * It, aint32_t with 'collectn.c' implements what is basically a variable
  6. * length array (of pointers).
  7. */
  8. #ifndef RDOFF_COLLECTN_H
  9. #define RDOFF_COLLECTN_H 1
  10. typedef struct tagCollection {
  11. void *p[32]; /* array of pointers to objects */
  12. struct tagCollection *next;
  13. } Collection;
  14. void collection_init(Collection * c);
  15. void **colln(Collection * c, int index);
  16. void collection_reset(Collection * c);
  17. #endif