Logo Search packages:      
Sourcecode: hamlib version File versions

const char* HAMLIB_API rig_strfunc ( setting_t  func  ) 

Convert enum RIG_FUNC_... to alpha string.

Parameters:
func RIG_FUNC_...
Returns:
alpha string
See also:
rig_func_e

Definition at line 438 of file misc.c.

References RIG_FUNC_NONE.

{
      int i;

      if (func == RIG_FUNC_NONE)
            return "";

      for (i=0; func_str[i].str[0] != '\0'; i++)
            if (func == func_str[i].func)
                  return func_str[i].str;

      return "";
}


Generated by  Doxygen 1.6.0   Back to index