summaryrefslogtreecommitdiff
path: root/src/ctype/tolower.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctype/tolower.c')
-rw-r--r--src/ctype/tolower.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ctype/tolower.c b/src/ctype/tolower.c
index 4512ef36..3da90645 100644
--- a/src/ctype/tolower.c
+++ b/src/ctype/tolower.c
@@ -1,14 +1,13 @@
#include <ctype.h>
#include "stdio.h"
#include "limits.h"
-#include "../_assert.h"
#include "_ctype.h"
/** convert an uppercase letter to lowercase **/
int tolower(int c)
{
- unsigned char *map = __libc(TOLOWER);
+ unsigned char *map = __get_locale()->lc_ctype.ctolower;
ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF);