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

rptr_shift_t HAMLIB_API rig_parse_rptr_shift ( const char *  s  ) 

Convert alpha char to enum RIG_RPT_SHIFT_...

Parameters:
s alpha char
Returns:
RIG_RPT_SHIFT_...

Definition at line 715 of file misc.c.

References RIG_RPT_SHIFT_MINUS, RIG_RPT_SHIFT_NONE, and RIG_RPT_SHIFT_PLUS.

{
      if (strcmp(s, "+") == 0)
            return RIG_RPT_SHIFT_PLUS;
      else if (strcmp(s, "-") == 0)
            return RIG_RPT_SHIFT_MINUS;
      else
            return RIG_RPT_SHIFT_NONE;
}


Generated by  Doxygen 1.6.0   Back to index