r6831@lvps87-230-33-50: verhaegs | 2008-02-03 14:08:57 +0100
[tangerine.git] / compiler / clib / strlwr.c
blobb5134c9912f631c41021dbd7166fd7e4f31db978
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 C function strlwr().
6 */
8 /*****************************************************************************
10 NAME */
11 #include <string.h>
13 char * strlwr (
15 /* SYNOPSIS */
16 char * str)
18 /* FUNCTION
20 Converts a string to all lower case characters. Modifies
21 the given string.
23 INPUTS
24 str - The string to convert.
26 RESULT
27 The same string buffer is passed back with all characters converted.
29 NOTES
31 EXAMPLE
33 BUGS
35 SEE ALSO
37 INTERNALS
39 ******************************************************************************/
41 unsigned int i = 0;
42 while (str[i]) {
43 if (str[i] >= 'A' && str[i] <= 'Z')
44 str[i] -= ('A'-'a');
45 i++;
48 return str;
49 } /* strlwr */