diff options
| author | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2019-09-09 16:00:06 +0100 |
|---|---|---|
| committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2019-09-09 16:00:06 +0100 |
| commit | 5e9d8a7b18c001fd60d3c3978f90dcdaf20f5ce6 (patch) | |
| tree | 9012cba7e5102d330c25e73bfa43ce54a94b05e4 | |
| parent | e0720a48b0ce9db78aa1e048e4e2d1d5cfae41db (diff) | |
| download | plan9front-5e9d8a7b18c001fd60d3c3978f90dcdaf20f5ce6.tar.xz | |
Add toascii() to ape
| -rw-r--r-- | sys/include/ape/ctype.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |
