Logo Search packages:      
Sourcecode: hamlib version File versions

setting_t HAMLIB_API rig_parse_func ( const char *  s  ) 

Convert alpha string to enum RIG_FUNC_...

Parameters:
s input alpha string
Returns:
RIG_FUNC_...
See also:
rig_func_e

Definition at line 420 of file misc.c.

References RIG_FUNC_NONE.

{
      int i;

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

      return RIG_FUNC_NONE;
}


Generated by  Doxygen 1.6.0   Back to index