IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 7, 2010, 2:58:52 PM (16 years ago)
Author:
rhenders
Message:

Now pulling correct survey ID from init data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/src/ippToPspsConfig.c

    r27779 r28249  
    325325
    326326    return ret;
     327}
     328
     329// gets survey ID from survey name
     330bool ippToPspsConfig_getSurveyId(IppToPspsConfig* this, const char* surveyType, int8_t* surveyId) {
     331
     332    char buffer[10];
     333    if (!ippToPspsConfig_getInitValue(this, "Survey", "name", surveyType, "surveyID", buffer)) {
     334
     335        *surveyId = -1;
     336        return false;
     337    }
     338
     339    *surveyId = atoi(buffer);
     340    return true;
    327341}
    328342
Note: See TracChangeset for help on using the changeset viewer.