IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 4, 2004, 3:27:54 PM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sysUtils/psHash.c

    r875 r885  
    1313#include "psTrace.h"
    1414
    15 void psHashKeyList()
    16 {
    17     printf("This has not been coded.\n");
     15psDlist *psHashKeyList(psHash *table)
     16{
     17    int i = 0;
     18    psDlist *myLinkList = NULL;
     19
     20    if (table == NULL) {
     21        return NULL;
     22    }
     23
     24    myLinkList = psDlistAlloc(NULL);
     25
     26    for (i=0;i<table->nbucket;i++) {
     27        if (table->buckets[i] != NULL) {
     28            psDlistAdd(myLinkList, (table->buckets[i])->key, PS_DLIST_HEAD);
     29        }
     30    }
     31
     32    return(myLinkList);
    1833}
    1934
Note: See TracChangeset for help on using the changeset viewer.