MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / rot_strfunc

Function rot_strfunc

src/misc.c:927–948  ·  view source on GitHub ↗

* \brief Convert enum ROT_FUNC_... to alpha string * \param func ROT_FUNC_... * \return alpha string * * \sa rot_func_e() */

Source from the content-addressed store, hash-verified

925 * \sa rot_func_e()
926 */
927const 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
951static const struct

Callers 3

dummy_set_funcFunction · 0.85
dummy_get_funcFunction · 0.85
rot_sprintf_funcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected