From 5e9d8a7b18c001fd60d3c3978f90dcdaf20f5ce6 Mon Sep 17 00:00:00 2001 From: "Roberto E. Vargas Caballero" Date: Mon, 9 Sep 2019 16:00:06 +0100 Subject: [PATCH] Add toascii() to ape --- sys/include/ape/ctype.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/include/ape/ctype.h b/sys/include/ape/ctype.h index c17ec4e59..1f36f4441 100644 --- a/sys/include/ape/ctype.h +++ b/sys/include/ape/ctype.h @@ -50,6 +50,7 @@ extern unsigned char _ctype[]; #ifdef _BSD_EXTENSION #define isascii(c) (((unsigned int)(c))<0x80) +#define toascii( c ) ((unsigned)(c) & 0x007f) #endif #endif /* __CTYPE */