Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

_table.h

Go to the documentation of this file.
00001 
00002 #ifndef _TABLE_H
00003 #define _TABLE_H
00004 
00005 #include <stddef.h>             /* size_t */
00006 
00007 typedef struct
00008 {
00009   unsigned long int *table;     /* ptr to first entry */
00010   int dsize;                    /* acutal size of each data, in bytes */
00011   int lsize;                    /* upped size of each data, in longs */
00012   unsigned long int size;       /* # of slots in table */
00013   unsigned long int count;      /* # of full slots */
00014 }
00015 _RCS_TABLE;
00016 
00017 #ifdef __cplusplus
00018 extern "C"
00019 {
00020 #endif
00021 
00022   extern int table_new (_RCS_TABLE * table, size_t dsize);
00023   extern int table_delete (_RCS_TABLE * table);
00024   extern int table_add (_RCS_TABLE * table, unsigned long int key,
00025                         const void *data);
00026   extern int table_get (_RCS_TABLE * table, unsigned long int key,
00027                         void *data);
00028   extern int table_clear (_RCS_TABLE * table, unsigned long int key);
00029   extern int table_clearall (_RCS_TABLE * table);
00030   extern void table_print (_RCS_TABLE * table);
00031 
00032 #ifdef __cplusplus
00033 }
00034 #endif
00035 
00036 #endif

Generated on Sun Dec 2 15:56:48 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001