diff options
Diffstat (limited to 'functions.c')
-rw-r--r-- | functions.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/functions.c b/functions.c index 58be95f..730819f 100644 --- a/functions.c +++ b/functions.c @@ -1583,3 +1583,10 @@ void stripprefixesfromnick(char *nick) { // Copy back to source string strcpy(nick, nicktmp); } + +// Convert the given 'string' into lowercase +void strlower(char *string) { + for (int i = 0; string[i]; i++) { + string[i] = tolower(string[i]); + } +} |