diff options
Diffstat (limited to 'src/util.c')
| -rw-r--r-- | src/util.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c index 55a7ab2a9..9499ceadf 100644 --- a/src/util.c +++ b/src/util.c @@ -104,6 +104,20 @@ int git__fmt(char *buf, size_t buf_sz, const char *fmt, ...) return r; } +void git__strntolower(char *str, int len) +{ + int i; + + for (i = 0; i < len; ++i) { + str[i] = tolower(str[i]); + } +} + +void git__strtolower(char *str) +{ + git__strntolower(str, strlen(str)); +} + int git__prefixcmp(const char *str, const char *prefix) { for (;;) { |
