makes sure that the string only contains the characters between 32 and 255 */
| 1605 | |
| 1606 | /* makes sure that the string only contains the characters between 32 and 255 */ |
| 1607 | void 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 */ |
| 1619 | void str_sanitize(char *str_in) |