1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#include <ctype.h> /** convert a character to 7-bit ASCII **/ int toascii(int c) { return (c & 0x7f); } #endif /*** The fn(toascii) function converts arg(c) to 7-bit ASCII. ***/ /* RETURN: arg(c) & 0x7f */ /* UNDEFINED: - */ /* UNSPECIFIED: - */ /* IMPLEMENTATION: - */ /* LOCALE: - */ /* XOPEN(4) */