Changeset 1920 for trunk/psLib/test/collections/tst_psArray.c
- Timestamp:
- Sep 28, 2004, 1:26:49 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/collections/tst_psArray.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psArray.c
r1406 r1920 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-0 8-06 22:34:05$14 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-09-28 23:26:49 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 83 83 // Test C - Reallocate void pointer array bigger 84 84 printPositiveTestHeader(stdout,"psArray", "Reallocate void pointer array bigger"); 85 psArr = psArrayRealloc( 10, psArr);85 psArr = psArrayRealloc(psArr,10); 86 86 printf("Adding more elements to void pointer array...\n"); 87 87 for(int i = 5; i < 10; i++) { … … 117 117 // Test D - Reallocate void pointer array smaller 118 118 printPositiveTestHeader(stdout,"psArray","Reallocate void pointer array smaller"); 119 psArr = psArrayRealloc( 3, psArr);119 psArr = psArrayRealloc(psArr,3); 120 120 for(int i = 0; i < 3; i++) { 121 121 testStruct *ts = (testStruct*)psArr->data[i];
Note:
See TracChangeset
for help on using the changeset viewer.
