MCPcopy Create free account
hub / github.com/acl-dev/acl / lowercase

Function lowercase

lib_acl_cpp/independent/connpool/src/string_util.cpp:44–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44char* lowercase(const char* src, char* buf, size_t size)
45{
46 if (src == NULL || buf == NULL || size == 0)
47 return NULL;
48
49 char *cp = buf;
50
51 while (size > 1 && *src) {
52 *cp++ = tolower(*src++);
53 size--;
54 }
55
56 *cp = 0;
57 return buf;
58}
59
60char *strtrim(char *str)
61{

Callers 3

removeMethod · 0.70
getMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…