toascii(3)

toascii3

Convert a byte to 7-bit ascii

Usage

#include <ctype.h>

int

toascii(int c);

Library

Standard C Library (libc, -lc)

Overview

The toascii() function strips all but the low 7 bits from a letter, including parity or other marker bits.

Return values

The toascii() function always returns a valid ASCII character.

Releases

161 releases since Mac OS X 10.1; the text changed 3 times.

  1. 10.1–10.1.5
  2. 10.2–10.2.8
  3. 10.3–10.6.8
  4. 10.7–26.5

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.