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

vfo_t HAMLIB_API rig_parse_vfo ( const char *  s  ) 

Convert alpha string to enum RIG_VFO_...

Parameters:
s input alpha string
Returns:
RIG_VFO_...

Definition at line 320 of file misc.c.

References RIG_VFO_NONE.

{
      int i;

      for (i=0; vfo_str[i].str != ""; i++)
            if (!strcmp(s, vfo_str[i].str))
                  return vfo_str[i].vfo;
      return RIG_VFO_NONE;
}


Generated by  Doxygen 1.6.0   Back to index