IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 11, 2007, 7:01:50 AM (19 years ago)
Author:
magnier
Message:

check EXTWORD for string and non-string values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFits.c

    r12555 r12801  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.64 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2007-03-23 00:34:52 $
     9 *  @version $Revision: 1.65 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2007-04-11 17:01:50 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    210210    int hdutype = 0;
    211211    char name[MAX_STRING_LENGTH];
     212    char extstring[MAX_STRING_LENGTH];
     213
     214    sprintf (extstring, "'%s'", extname);
    212215
    213216    // NOTE: fits_* return 0 for success
     
    229232            continue;
    230233        }
     234        // if this was read as a string, we will have leading and trailing single-quotes
     235        // try both for comparison
     236       
    231237        // do we have the right hdu (names match)?
    232         if (!strcmp (name, extname)) {
     238        if (!strcmp (name, extname) || !strcmp (name, extstring)) {
    233239            return true;
    234240        }
Note: See TracChangeset for help on using the changeset viewer.