shithub: riscv

Download patch

ref: 5e9d8a7b18c001fd60d3c3978f90dcdaf20f5ce6
parent: e0720a48b0ce9db78aa1e048e4e2d1d5cfae41db
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Sep 9 12:00:06 EDT 2019

Add toascii() to ape

--- a/sys/include/ape/ctype.h
+++ b/sys/include/ape/ctype.h
@@ -50,6 +50,7 @@
 
 #ifdef _BSD_EXTENSION
 #define	isascii(c) (((unsigned int)(c))<0x80)
+#define	toascii( c ) ((unsigned)(c) & 0x007f)
 #endif
 
 #endif /* __CTYPE */