summaryrefslogblamecommitdiff
path: root/src/ctype/tolower.c
blob: 362d6b2becdebbae8c123de7a3f580abe8536c02 (plain) (tree)
1
2
3
4
5
6
7
8
                  
                 





                                      






                                   
#include <ctype.h>
#include "libc.h"

int tolower(int c)
{
	if (isupper(c)) return c | 32;
	return c;
}

int __tolower_l(int c, locale_t l)
{
	return tolower(c);
}

weak_alias(__tolower_l, tolower_l);