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

Function istarts_with

strbuf.c:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20bool istarts_with(const char *str, const char *prefix)
21{
22 for (; ; str++, prefix++)
23 if (!*prefix)
24 return true;
25 else if (tolower(*str) != tolower(*prefix))
26 return false;
27}
28
29bool starts_with_mem(const char *str, size_t len, const char *prefix)
30{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected