xref: /haiku/src/system/libroot/posix/string/strlwr.c (revision bb956ce2ea0ae817c441113375b65f0ddb5ca231)
1 /*
2  * Copyright 2008, Mika Lindqvist. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #include <ctype.h>
7 #include <string.h>
8 
9 char *
strlwr(char * str)10 strlwr(char *str)
11 {
12     char *c = str;
13     while (*c) {
14         *c = tolower(*c);
15         c++;
16     }
17 
18     return str;
19 }
20 
21