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

const char* HAMLIB_API rig_strlevel ( setting_t  level  ) 

Convert enum RIG_LEVEL_... to alpha string.

Parameters:
level RIG_LEVEL_...
Returns:
alpha string
See also:
rig_level_e

Definition at line 515 of file misc.c.

References RIG_LEVEL_NONE.

{
      int i;

      if (level == RIG_LEVEL_NONE)
            return "";

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

      return "";
}


Generated by  Doxygen 1.6.0   Back to index