Changeset 8798
- Timestamp:
- Sep 12, 2006, 11:04:11 AM (20 years ago)
- Location:
- trunk/psLib/src/types
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psArray.c
r8627 r8798 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.4 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-0 8-26 04:34:28$11 * @version $Revision: 1.49 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-09-12 21:04:11 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 165 165 } 166 166 167 for ( psS32i = 0; i < psArr->n; i++) {167 for (long i = 0; i < psArr->n; i++) { 168 168 psFree(psArr->data[i]); 169 169 psArr->data[i] = NULL; 170 170 } 171 172 psArray->n = 0; 171 173 } 172 174 -
trunk/psLib/src/types/psArray.h
r7816 r8798 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2006-0 7-05 22:34:38$13 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-09-12 21:04:11 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 114 114 * Uses psLib memory allocation functions to deallocate/dereference elements 115 115 * of a array of void pointers. The array psArr is not freed, and its elements 116 * will all be set to NULL. 116 * will all be set to NULL. Additionaly, the array size (n) is set to zero. 117 117 * 118 118 */
Note:
See TracChangeset
for help on using the changeset viewer.
