Changeset 5515 for trunk/psLib/src/types
- Timestamp:
- Nov 14, 2005, 6:03:36 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/types/psLookupTable.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psLookupTable.c
r4898 r5515 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1.2 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2005- 08-30 01:14:13$9 * @version $Revision: 1.26 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-11-15 04:03:36 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 152 152 153 153 value = (psS32)strtol(inString, &end, 0); 154 if(*end != '\0' ) {154 if(*end != '\0' && !isspace(*end)) { 155 155 *status = PS_PARSE_ERROR_VALUE; 156 156 } else if(inString==end) { … … 169 169 170 170 value = (psS64)strtoll(inString, &end, 0); 171 if(*end != '\0' ) {171 if(*end != '\0' && !isspace(*end)) { 172 172 *status = PS_PARSE_ERROR_VALUE; 173 173 } else if(inString==end) { … … 186 186 187 187 value = (psF32)strtof(inString, &end); 188 if(*end != '\0' ) {188 if(*end != '\0' && !isspace(*end)) { 189 189 *status = PS_PARSE_ERROR_VALUE; 190 190 } else if(inString==end) { … … 203 203 204 204 value = (psF64)strtod(inString, &end); 205 if(*end != '\0' ) {205 if(*end != '\0' && !isspace(*end)) { 206 206 *status = PS_PARSE_ERROR_VALUE; 207 207 } else if(inString==end) { … … 444 444 // Parse the format string to determine how many vectors 445 445 // and whether the format string is valid 446 while((strValue=getToken((char**)&tempFormat," ",&parseStatus))) {446 while((strValue=getToken((char**)&tempFormat," ",&parseStatus))) { 447 447 448 448 // Check for %d format sub string … … 511 511 512 512 // Loop through format and line strings to get values in text table file 513 while((strValue=getToken((char**)&tempFormat," ",&parseStatus)) &&514 (strNum=getToken((char**)&linePtr," ",&parseStatus)) ) {513 while((strValue=getToken((char**)&tempFormat," ",&parseStatus)) && 514 (strNum=getToken((char**)&linePtr," ",&parseStatus)) ) { 515 515 516 516 // Set column vector
Note:
See TracChangeset
for help on using the changeset viewer.
