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

const char* HAMLIB_API rig_strvfop ( vfo_op_t  op  ) 

Convert enum RIG_OP_... to alpha string.

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

Definition at line 627 of file misc.c.

References RIG_OP_NONE.

{
      int i;

      if (op == RIG_OP_NONE)
            return "";

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

      return "";
}


Generated by  Doxygen 1.6.0   Back to index