Changeset 9553
- Timestamp:
- Oct 13, 2006, 2:07:13 PM (20 years ago)
- Location:
- trunk/psLib/src/mathtypes
- Files:
-
- 2 edited
-
psVector.c (modified) (4 diffs)
-
psVector.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psVector.c
r9551 r9553 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.8 4$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-10-1 3 23:54:34$11 * @version $Revision: 1.85 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-10-14 00:07:13 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 487 487 } 488 488 489 char*psVectorToString(const psVector* vector,490 int maxLength)489 psString psVectorToString(const psVector* vector, 490 int maxLength) 491 491 { 492 492 … … 495 495 } 496 496 497 char* str = psAlloc(sizeof(char)*maxLength+1);497 psString str = psStringAlloc(maxLength + 1); 498 498 499 499 if (vector == NULL) { … … 509 509 } 510 510 511 char* tempStr = psAlloc(sizeof(char)*maxLength+1);511 psString tempStr = psStringAlloc(maxLength+1); 512 512 *str = '\0'; 513 513 bool full = false; -
trunk/psLib/src/mathtypes/psVector.h
r9551 r9553 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.5 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2006-10-1 3 23:54:34$13 * @version $Revision: 1.58 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-10-14 00:07:13 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 175 175 * @return psPtr a newly allocated string 176 176 */ 177 char*psVectorToString(177 psString psVectorToString( 178 178 const psVector* vector, ///< vector to create a string from 179 179 int maxLength ///< the maximum length of the resulting string
Note:
See TracChangeset
for help on using the changeset viewer.
