IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9553


Ignore:
Timestamp:
Oct 13, 2006, 2:07:13 PM (20 years ago)
Author:
Paul Price
Message:

Changing char* to psString

Location:
trunk/psLib/src/mathtypes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psVector.c

    r9551 r9553  
    99*  @author Robert DeSonia, MHPCC
    1010*
    11 *  @version $Revision: 1.84 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2006-10-13 23:54:34 $
     11*  @version $Revision: 1.85 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2006-10-14 00:07:13 $
    1313*
    1414*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    487487}
    488488
    489 char* psVectorToString(const psVector* vector,
    490                        int maxLength)
     489psString psVectorToString(const psVector* vector,
     490                          int maxLength)
    491491{
    492492
     
    495495    }
    496496
    497     char* str = psAlloc(sizeof(char)*maxLength+1);
     497    psString str = psStringAlloc(maxLength + 1);
    498498
    499499    if (vector == NULL) {
     
    509509    }
    510510
    511     char* tempStr = psAlloc(sizeof(char)*maxLength+1);
     511    psString tempStr = psStringAlloc(maxLength+1);
    512512    *str = '\0';
    513513    bool full = false;
  • trunk/psLib/src/mathtypes/psVector.h

    r9551 r9553  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2006-10-13 23:54:34 $
     13 *  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-10-14 00:07:13 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    175175 *  @return psPtr          a newly allocated string
    176176 */
    177 char* psVectorToString(
     177psString psVectorToString(
    178178    const psVector* vector,             ///< vector to create a string from
    179179    int maxLength                      ///< the maximum length of the resulting string
Note: See TracChangeset for help on using the changeset viewer.