MCPcopy Create free account
hub / github.com/git/git / xstrdup_tolower

Function xstrdup_tolower

strbuf.c:960–970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

958}
959
960char *xstrdup_tolower(const char *string)
961{
962 char *result;
963 size_t len, i;
964
965 len = strlen(string);
966 result = xmallocz(len);
967 for (i = 0; i < len; i++)
968 result[i] = tolower(string[i]);
969 return result;
970}
971
972char *xstrdup_toupper(const char *string)
973{

Callers 2

cmd_mainFunction · 0.85
get_urlmatchFunction · 0.85

Calls 1

xmalloczFunction · 0.85

Tested by

no test coverage detected