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

const char* HAMLIB_API rig_strscan ( scan_t  rscan  ) 

Convert enum RIG_SCAN_... to alpha string.

Parameters:
rscan RIG_SCAN_...
Returns:
alpha string
See also:
scan_t

Definition at line 682 of file misc.c.

References RIG_SCAN_NONE.

{
      int i;

      if (rscan == RIG_SCAN_NONE)
            return "";

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


Generated by  Doxygen 1.6.0   Back to index