Logo Search packages:      
Sourcecode: hamlib version File versions

vfo_op_t HAMLIB_API rig_parse_vfo_op ( const char *  s  ) 

Convert alpha string to enum RIG_OP_...

Parameters:
s alpha string
Returns:
RIG_OP_...
See also:
vfo_op_t

Definition at line 609 of file misc.c.

References RIG_OP_NONE.

{
      int i;

      for (i=0 ; vfo_op_str[i].str[0] != '\0'; i++)
            if (!strcmp(s, vfo_op_str[i].str))
                  return vfo_op_str[i].vfo_op;

      return RIG_OP_NONE;
}


Generated by  Doxygen 1.6.0   Back to index