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

Function rot_strstatus

src/misc.c:2340–2353  ·  view source on GitHub ↗

* \brief Convert enum ROT_STATUS_... to a string * \param status ROT_STATUS_... * \return the corresponding string value */

Source from the content-addressed store, hash-verified

2338 * \return the corresponding string value
2339 */
2340const char *HAMLIB_API rot_strstatus(rot_status_t status)
2341{
2342 int i;
2343
2344 for (i = 0 ; rot_status_str[i].str[0] != '\0'; i++)
2345 {
2346 if (status == rot_status_str[i].status)
2347 {
2348 return rot_status_str[i].str;
2349 }
2350 }
2351
2352 return "";
2353}
2354
2355/**
2356 * \brief Get pointer to rig function instead of using rig->caps

Callers 1

rot_sprintf_statusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected