int qHasharrInit ( Q_HASHARR tbl,
size_t  memsize 
)

Initialize array-hash table

Parameters:
tbl a pointer of Q_HASHARR
memsize actual size of Q_HASHARR
Returns:
maximum number of available slots if successful, otherwise returns 0
   // allocate memory
   size_t memsize = qHasharrSize(100);
   Q_HASHARR *hasharr = (Q_HASHARR *)malloc(memsize);

   // initialize hash-table
   if(qHasharrInit(hasharr, memsize) == 0) return -1;

Definition at line 154 of file qHasharr.c.


Generated on Mon Mar 26 07:00:51 2018 for JSOC_Documentation by  doxygen 1.5.7.1