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

chan_type_t HAMLIB_API rig_parse_mtype ( const char *  s  ) 

Convert alpha string to enum RIG_MTYPE_...

Parameters:
s alpha string
Returns:
RIG_MTYPE_...
See also:
chan_type_t

Definition at line 746 of file misc.c.

References RIG_MTYPE_NONE.

{
      int i;

      for (i=0 ; mtype_str[i].str[0] != '\0'; i++) {
            if (strcmp(s, mtype_str[i].str) == 0) {
                  return mtype_str[i].mtype;
            }
      }
      return RIG_MTYPE_NONE;
}


Generated by  Doxygen 1.6.0   Back to index