Changeset 2698 for trunk/psLib/test/collections/tst_psList.c
- Timestamp:
- Dec 10, 2004, 3:19:06 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/collections/tst_psList.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psList.c
r2681 r2698 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-12-1 0 02:50:16 $8 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-12-11 01:19:06 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 981 981 982 982 printf("original list = ["); 983 psListIteratorSet(iter,PS_LIST_HEAD);983 iter = psListIteratorAlloc(list,PS_LIST_HEAD); 984 984 while( (uValue=psListGetNext(iter)) != NULL ) { 985 985 printf(" %d",*uValue); … … 999 999 psU32* prevUValue = psListGetNext(iter); 1000 1000 while( (uValue=psListGetNext(iter)) != NULL ) { 1001 if (*prevUValue <*uValue) {1001 if (*prevUValue > *uValue) { 1002 1002 psError(PS_ERR_UNKNOWN, true,"Hey, the list wasn't sorted!?"); 1003 1003 return 3;
Note:
See TracChangeset
for help on using the changeset viewer.
