changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: Add toascii() to ape

changeset 7379: 072514e7cf5a
parent 7378: b22ea0ca9175
child 7380: 696a8b797a1e
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon, 09 Sep 2019 16:00:06 +0100
files: sys/include/ape/ctype.h
description: Add toascii() to ape
     1.1--- a/sys/include/ape/ctype.h
     1.2+++ b/sys/include/ape/ctype.h
     1.3@@ -50,6 +50,7 @@ extern unsigned char _ctype[];
     1.4 
     1.5 #ifdef _BSD_EXTENSION
     1.6 #define	isascii(c) (((unsigned int)(c))<0x80)
     1.7+#define	toascii( c ) ((unsigned)(c) & 0x007f)
     1.8 #endif
     1.9 
    1.10 #endif /* __CTYPE */