* \brief Convert enum ROT_FUNC_... to alpha string * \param func ROT_FUNC_... * \return alpha string * * \sa rot_func_e() */
| 925 | * \sa rot_func_e() |
| 926 | */ |
| 927 | const char *HAMLIB_API rot_strfunc(setting_t func) |
| 928 | { |
| 929 | int i; |
| 930 | |
| 931 | // too verbose to keep on unless debugging this in particular |
| 932 | //rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); |
| 933 | |
| 934 | if (func == ROT_FUNC_NONE) |
| 935 | { |
| 936 | return ""; |
| 937 | } |
| 938 | |
| 939 | for (i = 0; rot_func_str[i].str[0] != '\0'; i++) |
| 940 | { |
| 941 | if (func == rot_func_str[i].func) |
| 942 | { |
| 943 | return rot_func_str[i].str; |
| 944 | } |
| 945 | } |
| 946 | |
| 947 | return ""; |
| 948 | } |
| 949 | |
| 950 | |
| 951 | static const struct |
no outgoing calls
no test coverage detected