MCPcopy Create free account
hub / github.com/Sapd/HeadsetControl / env_format_key

Function env_format_key

src/output.c:707–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705}
706
707const 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
723void output_env(HeadsetControlStatus* status, HeadsetInfo* infos)
724{

Callers 3

env_printFunction · 0.85
env_printwFunction · 0.85
env_printintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected