IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5515 for trunk/psLib/src/types


Ignore:
Timestamp:
Nov 14, 2005, 6:03:36 PM (20 years ago)
Author:
drobbin
Message:

edited VectorsReadFromFile per bug 577 and added Precession Model to EOC testing but fails to init correct tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psLookupTable.c

    r4898 r5515  
    77*  @author Ross Harman, MHPCC
    88*
    9 *  @version $Revision: 1.25 $ $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 $
    1111*
    1212*  Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    152152
    153153    value = (psS32)strtol(inString, &end, 0);
    154     if(*end != '\0') {
     154    if(*end != '\0' && !isspace(*end)) {
    155155        *status = PS_PARSE_ERROR_VALUE;
    156156    } else if(inString==end) {
     
    169169
    170170    value = (psS64)strtoll(inString, &end, 0);
    171     if(*end != '\0') {
     171    if(*end != '\0' && !isspace(*end)) {
    172172        *status = PS_PARSE_ERROR_VALUE;
    173173    } else if(inString==end) {
     
    186186
    187187    value = (psF32)strtof(inString, &end);
    188     if(*end != '\0') {
     188    if(*end != '\0' && !isspace(*end)) {
    189189        *status = PS_PARSE_ERROR_VALUE;
    190190    } else if(inString==end) {
     
    203203
    204204    value = (psF64)strtod(inString, &end);
    205     if(*end != '\0') {
     205    if(*end != '\0' && !isspace(*end)) {
    206206        *status = PS_PARSE_ERROR_VALUE;
    207207    } else if(inString==end) {
     
    444444    // Parse the format string to determine how many vectors
    445445    // and whether the format string is valid
    446     while((strValue=getToken((char**)&tempFormat," ",&parseStatus))) {
     446    while((strValue=getToken((char**)&tempFormat,"    ",&parseStatus))) {
    447447
    448448        // Check for %d format sub string
     
    511511
    512512                    // 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)) ) {
    515515
    516516                        // Set column vector
Note: See TracChangeset for help on using the changeset viewer.