IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2005, 6:56:22 PM (21 years ago)
Author:
eugene
Message:

added get_variable_default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/variable.c

    r2598 r3142  
    171171}
    172172
     173float get_variable_default (char *name, float dvalue) {
     174
     175  char *value;
     176  float fvalue;
     177
     178  value = get_variable (name);
     179  if (value == NULL) {
     180    return (dvalue);
     181  }
     182  fvalue = atof (value);
     183  return (fvalue);
     184}
     185
    173186double get_double_variable (char *name) {
    174187 
Note: See TracChangeset for help on using the changeset viewer.