Changeset 4312 for trunk/psLib/src/collections/psList.c
- Timestamp:
- Jun 17, 2005, 2:53:32 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psList.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psList.c
r3682 r4312 6 6 * @author Robert Daniel DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-0 4-07 20:27:41$8 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-06-18 00:53:32 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 592 592 } 593 593 594 psList* psArrayToList( psArray* arr)594 psList* psArrayToList(const psArray* array) 595 595 { 596 596 psU32 n; 597 597 psList* list; // list of elements 598 598 599 if (arr == NULL) {599 if (array == NULL) { 600 600 return NULL; 601 601 } 602 602 603 603 list = psListAlloc(NULL); 604 n = arr ->n;604 n = array->n; 605 605 for (psS32 i = 0; i < n; i++) { 606 psListAdd(list, PS_LIST_TAIL, arr ->data[i]);606 psListAdd(list, PS_LIST_TAIL, array->data[i]); 607 607 } 608 608
Note:
See TracChangeset
for help on using the changeset viewer.
