collectn.h
Upload User: yuppie_zhu
Upload Date: 2007-01-08
Package Size: 535k
Code Size: 1k
Development Platform:

C/C++

  1. /* collectn.h Header file for 'collection' abstract data type
  2.  *
  3.  * This file is public domain, and does not come under the NASM license.
  4.  * It, along with 'collectn.c' implements what is basically a variable
  5.  * length array (of pointers)
  6.  */
  7. #ifndef _COLLECTN_H
  8. #define _COLLECTN_H
  9. typedef struct tagCollection {
  10.   void *p[32]; /* array of pointers to objects */
  11.   
  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