* \brief Convert enum ROT_STATUS_... to a string * \param status ROT_STATUS_... * \return the corresponding string value */
| 2338 | * \return the corresponding string value |
| 2339 | */ |
| 2340 | const 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 |
no outgoing calls
no test coverage detected