Logo Search packages:      
Sourcecode: hamlib version File versions

const char* HAMLIB_API rig_strmtype ( chan_type_t  mtype  ) 

Convert enum RIG_MTYPE_... to alpha string.

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

Definition at line 765 of file misc.c.

References RIG_MTYPE_NONE.

{
      int i;

      if (mtype == RIG_MTYPE_NONE)
            return "";

      for (i=0; mtype_str[i].str[0] != '\0'; i++)
            if (mtype == mtype_str[i].mtype)
                  return mtype_str[i].str;
      return "";
}


Generated by  Doxygen 1.6.0   Back to index