IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 4, 2006, 2:25:22 AM (20 years ago)
Author:
eugene
Message:

added SelectScalar

File:
1 edited

Legend:

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

    r7917 r8134  
    314314  return;
    315315}
     316
     317int SelectScalar (char *string, double *value) {
     318
     319  char *end;
     320
     321  /* if string is a number, return TRUE */
     322  *value = strtod (string, &end);
     323  if (end == string + strlen(string)) return (TRUE);
     324
     325  return (FALSE);
     326}
Note: See TracChangeset for help on using the changeset viewer.