hmm... sorry I can't follow your code here...
But from what I can guess, it seems that you never actualy assign anything into your List, befor quering it's containers... Relying on the compiler setting every instance to NULL uppon declaration...
Befor using it, you might want to do something like:
Code:
memcpy(List, NULL, MAX);
To nullify it befor you actualy start examining it for previus assignments.. then your
Code:
if(List[bucket] == NULL)
or
should work..