X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/0cea42440ffc9edab56710ab0baaff9454a86fea..248fbb8c23ed3f0da03b4e035d47ac3cfa094400:/util.c diff --git a/util.c b/util.c index ffbdc932..ed8d34e2 100644 --- a/util.c +++ b/util.c @@ -531,3 +531,15 @@ void glob_expand(char **argv, int *argc, int maxargs) (*argc) += i; #endif } + + +/******************************************************************* + convert a string to lower case +********************************************************************/ +void strlower(char *s) +{ + while (*s) { + if (isupper(*s)) *s = tolower(*s); + s++; + } +}