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

setting_t HAMLIB_API rig_parse_level ( const char *  s  ) 

Convert alpha string to enum RIG_LEVEL_...

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

Definition at line 459 of file misc.c.

References RIG_LEVEL_NONE.

{
      int i;

      for (i=0 ; level_str[i].str != ""; i++)
            if (!strcmp(s, level_str[i].str))
                  return level_str[i].level;

      return RIG_LEVEL_NONE;
}


Generated by  Doxygen 1.6.0   Back to index