Added new support str function
This commit is contained in:
1 parent
d458a4ec2e
commit
b80d683ce6
2 files changed
+4
No files matched your search
@@ -817,6 +817,9 @@ extern void str_lower(char *s ){
|
||||
for(int i=0; i < strlen(s); i++)
|
||||
s[i] = tolower( s[i] );
|
||||
}
|
||||
extern bool str_startswith(const char *s, const char *pre) {
|
||||
return strncmp(pre, s, strlen(pre)) == 0;
|
||||
}
|
||||
|
||||
// Replace unprintable characters with a dot in char buffer
|
||||
extern void clean_ascii(unsigned char *buf, size_t len) {
|
||||
|
||||
Reference in new issue
Block a user