IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 28, 2005, 10:17:52 AM (21 years ago)
Author:
drobbin
Message:

updated files in accordance with requested revisions in apidelta-report-cycle6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sysUtils/psString.c

    r3997 r4409  
    1212 *  @author Eric Van Alst, MHPCC
    1313 *
    14  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-05-20 01:41:17 $
     14 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-06-28 20:17:52 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2626#include "psSysUtilsErrors.h"
    2727
    28 char *psStringCopy(const char *str)
     28psString psStringCopy(const char *string)
    2929{
    3030    // Allocate memory using psAlloc function
    3131    // Copy input string to memory just allocated
    3232    // Return the copy
    33     return strcpy(psAlloc(strlen(str) + 1), str);
     33    return strcpy(psAlloc(strlen(string) + 1), string);
    3434}
    3535
    36 char *psStringNCopy(const char *str, psS32 nChar)
     36psString psStringNCopy(const char *string, int nChar)
    3737{
    3838    char *returnValue = NULL;
     
    4949    // Copy input string to memory allocated up to nChar characters
    5050    // Return the copy
    51     returnValue = strncpy(psAlloc((size_t) nChar + 1), str, (size_t) nChar);
     51    returnValue = strncpy(psAlloc((size_t) nChar + 1), string, (size_t) nChar);
    5252
    5353    // Ensure the last byte is NULL character
Note: See TracChangeset for help on using the changeset viewer.