| 705 | } |
| 706 | |
| 707 | const char* env_format_key(const char* str) |
| 708 | { |
| 709 | static char result[128]; |
| 710 | int i = 0, j = 0; |
| 711 | while (str[i] != '\0' && j < (int)(sizeof(result) - 1)) { |
| 712 | if (str[i] == ' ' || str[i] == '-') { |
| 713 | result[j++] = '_'; |
| 714 | } else { |
| 715 | result[j++] = (unsigned char)toupper((unsigned char)str[i]); |
| 716 | } |
| 717 | i++; |
| 718 | } |
| 719 | result[j] = '\0'; |
| 720 | return result; |
| 721 | } |
| 722 | |
| 723 | void output_env(HeadsetControlStatus* status, HeadsetInfo* infos) |
| 724 | { |
no outgoing calls
no test coverage detected