PBC Library Manual 0.5.11 - Stanford Crypto Group
PBC Library Manual 0.5.11 - Stanford Crypto Group
PBC Library Manual 0.5.11 - Stanford Crypto Group
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Returns the pointer at index i in the dynamic array a.<br />
void darray_remove_index(darray_t a, int n)<br />
Removes the pointer at index i in the dynamic array a.<br />
int darray_count(darray_t a)<br />
Returns the number of pointers held in a.<br />
8.12. Symbol tables<br />
Chapter 8. <strong>PBC</strong> internals<br />
The symtab_t data type manages symbol tables where the keys are strings of type char * and the<br />
values are pointers of type void \*.<br />
At present, they are implemented inefficiently using dynamic arrays, but this will change if the need<br />
arises. They are only used when reading a pbc_param_t from a string. Declared in pbc_symtab.h.<br />
void symtab_init(symtab_t t)<br />
Initialize symbol table t. Must be called before t is used.<br />
void symtab_clear(symtab_t t)<br />
Clears symbol table t. Should be called after t is no longer needed.<br />
void symtab_put(symtab_t t, void *value, const char *key)<br />
Puts value at key in t.<br />
int symtab_has(symtab_t t, const char *key)<br />
42