IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 1, 2006, 10:40:56 AM (20 years ago)
Author:
drobbin
Message:

Added error handling to psString for NULL string inputs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psString.h

    r6201 r6278  
    1414 *  @author David Robbins, MHPCC
    1515 *
    16  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    17  *  @date $Date: 2006-01-26 05:31:54 $
     16 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     17 *  @date $Date: 2006-02-01 20:40:56 $
    1818 *
    1919 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3838/** Copies the input string
    3939 *
    40  *  This function shall allocate memory to the length of the input string
    41  *  plus one and copy the input string to the newly allocated memory.
     40 *  This function shall allocate memory to the length of the input string plus
     41 *  one and copy the input string to the newly allocated memory.  If 'string'
     42 *  is 'NULL' then 'NULL' is returned.
    4243 *
    4344 *  @return psString:      Copy of input string
     
    5556 *  string will be a substring of the input string.  If the input string
    5657 *  is smaller than nChar bytes then the remaining bytes allocated will
    57  *  be set to NULL.
     58 *  be set to NULL.  If 'string' is 'NULL' then 'NULL' is returned.
    5859 *
    5960 *  @return  psString:   Copy of input string
Note: See TracChangeset for help on using the changeset viewer.