MCPcopy Create free account
hub / github.com/cppla/ServerStatus / str_sanitize_cc

Function str_sanitize_cc

server/src/system.c:1607–1616  ·  view source on GitHub ↗

makes sure that the string only contains the characters between 32 and 255 */

Source from the content-addressed store, hash-verified

1605
1606/* makes sure that the string only contains the characters between 32 and 255 */
1607void str_sanitize_cc(char *str_in)
1608{
1609 unsigned char *str = (unsigned char *)str_in;
1610 while(*str)
1611 {
1612 if(*str < 32)
1613 *str = ' ';
1614 str++;
1615 }
1616}
1617
1618/* makes sure that the string only contains the characters between 32 and 255 + \r\n\t */
1619void str_sanitize(char *str_in)

Callers 1

RecvMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected