MCPcopy Index your code
hub / github.com/MapServer/MapServer / initHashTable

Function initHashTable

maphash.c:62–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62int initHashTable( hashTableObj *table )
63{
64 int i;
65
66 table->items = (struct hashObj **) malloc(sizeof(struct hashObj *)*MS_HASHSIZE);
67 MS_CHECK_ALLOC(table->items, sizeof(struct hashObj *)*MS_HASHSIZE, MS_FAILURE);
68
69 for (i=0; i<MS_HASHSIZE; i++)
70 table->items[i] = NULL;
71 table->numitems = 0;
72 return MS_SUCCESS;
73}
74
75void msFreeHashTable( hashTableObj *table )
76{

Callers 6

initClassFunction · 0.85
initLayerFunction · 0.85
initWebFunction · 0.85
initMapFunction · 0.85
msInitFontSetFunction · 0.85
hashTableObj_clearFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected