All pastes #508176 Raw Edit

Unnamed

public cpp v1 · immutable
·published 2007-05-24 21:59 UTC
rendered paste body
int table::adtRetrieve(char * cpKey, char ** returnedList){    struct node * current;    unsigned int adtHashPosition = 0;    int i = 0;        // calculate the hash into adtHashPosition    current = adtHashTable[adtHashPosition];    if(!current)      return 0;    while(current) {      returnedList[i++] = current->data;      current = current->next;    }    return 1;}