IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2004, 3:02:28 PM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/sysUtils/tst_psHash03.c

    r875 r892  
    6666    int testStatus      = true;
    6767    int i               = 0;
     68    int TotalKeys       = 0;
    6869    ID *id = NULL;
    6970    char *myKeys[] = {"ENTRY00", "ENTRY01", "ENTRY02", "ENTRY03", NULL};
     
    8586        i++;
    8687    }
     88    TotalKeys = i - 1;
    8789
    88     i = 0;
    89     while (myKeys[i] != NULL) {
     90    i = TotalKeys;
     91    while (i >= 0) {
     92
    9093        id = psHashLookup(myHashTable, myKeys[i]);
    9194        if (0 != strcmp(myData[i], id->name)) {
     
    9396                    __func__, myKeys[i], id->name, myData[i]);
    9497        }
    95         i++;
     98        i--;
    9699    }
    97100
Note: See TracChangeset for help on using the changeset viewer.