Changeset 1713 for trunk/psLib/src/sys/psString.c
- Timestamp:
- Sep 7, 2004, 2:09:06 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psString.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psString.c
r1407 r1713 9 9 * @author Eric Van Alst, MHPCC 10 10 * 11 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-0 8-07 00:06:06 $11 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-09-08 00:09:06 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 15 15 */ 16 16 17 /******************************************************************************/18 19 /* INCLUDE FILES */20 21 /******************************************************************************/22 17 #include <stdlib.h> 23 18 #include <string.h> … … 26 21 #include "psError.h" 27 22 28 /******************************************************************************/ 29 30 /* DEFINE STATEMENTS */ 31 32 /******************************************************************************/ 33 34 // None 35 36 /******************************************************************************/ 37 38 /* TYPE DEFINITIONS */ 39 40 /******************************************************************************/ 41 42 // None 43 44 /*****************************************************************************/ 45 46 /* GLOBAL VARIABLES */ 47 48 /*****************************************************************************/ 49 50 // None 51 52 /*****************************************************************************/ 53 54 /* FILE STATIC VARIABLES */ 55 56 /*****************************************************************************/ 57 58 // None 59 60 /*****************************************************************************/ 61 62 /* FUNCTION IMPLEMENTATION - LOCAL */ 63 64 /*****************************************************************************/ 65 66 // None 67 68 /*****************************************************************************/ 69 70 /* FUNCTION IMPLEMENTATION - PUBLIC */ 71 72 /*****************************************************************************/ 23 #include "psSysUtilsErrors.h" 24 #define ERRORNAME_PREFIX PS_ERRORNAME_DOMAIN ".psString." 73 25 74 26 char *psStringCopy(const char *str) … … 87 39 if (nChar < 0) { 88 40 // Log error message and return NULL 89 psError(__FILE__, "psStringNCopy with negative count specified %d", nChar); 41 psErrorMsg(ERRORNAME_PREFIX "psStringNCopy", PS_ERR_BAD_PARAMETER_VALUE, true, 42 PS_ERRORTEXT_psStringNCopy_NCHAR_NEGATIVE, 43 nChar); 90 44 return NULL; 91 45 }
Note:
See TracChangeset
for help on using the changeset viewer.
