IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 21, 2007, 11:37:58 AM (19 years ago)
Author:
jhoblitt
Message:

change p_psStringNCopy() p_psStringAlloc() accept string size as type size_t

File:
1 edited

Legend:

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

    r12296 r12517  
    1111 * @author Joshua Hoblitt, University of Hawaii
    1212 *
    13  * @version $Revision: 1.39 $ $Name: not supported by cvs2svn $
    14  * @date $Date: 2007-03-07 22:30:23 $
     13 * @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
     14 * @date $Date: 2007-03-21 21:37:58 $
    1515 *
    1616 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    4646#ifdef DOXYGEN
    4747psString psStringAlloc(
    48     long nChar                         ///< Size of psString to allocate.
     48    size_t nChar                        ///< Size of psString to allocate.
    4949);
    5050#else // ifdef DOXYGEN
     
    5353    unsigned int lineno,                ///< Line number of caller
    5454    const char *func,                   ///< Function name of caller
    55     long nChar                         ///< Size of psString to allocate.
     55    size_t nChar                        ///< Size of psString to allocate.
    5656);
    5757#define psStringAlloc(nChar) \
     
    110110#ifdef DOXYGEN
    111111psString psStringNCopy(
    112     const char *string,                ///< Input string of characters to copy
    113     unsigned int nChar                 ///< Number of bytes to allocate for string copy
     112    const char *string,                 ///< Input string of characters to copy
     113    size_t nChar                        ///< Number of bytes to allocate for string copy
    114114);
    115115#else // ifdef DOXYGEN
     
    119119    const char *func,                   ///< Function name of caller
    120120    const char *string,                 ///< Input string of characters to copy
    121     unsigned int nChar                  ///< Number of bytes to allocate for string copy
     121    size_t nChar                        ///< Number of bytes to allocate for string copy
    122122);
    123123#define psStringNCopy(string, nChar) \
Note: See TracChangeset for help on using the changeset viewer.