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