Logo Search packages:      
Sourcecode: hamlib version File versions  Download package

scan_t HAMLIB_API rig_parse_scan ( const char *  s  ) 

Convert alpha string to enum RIG_SCAN_...

Parameters:
s alpha string
Returns:
RIG_SCAN_...
See also:
scan_t

Definition at line 663 of file misc.c.

References RIG_SCAN_NONE.

{
      int i;

      for (i=0 ; scan_str[i].str[0] != '\0'; i++) {
            if (strcmp(s, scan_str[i].str) == 0) {
                  return scan_str[i].rscan;
            }
      }
      return RIG_SCAN_NONE;
}


Generated by  Doxygen 1.6.0   Back to index