The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

toascii - translate integer to a 7-bit ASCII character

 SYNOPSIS



#include <ctype.h>

int toascii(int c);

 DESCRIPTION

The toascii() function converts its argument into a 7-bit ASCII character.

 RETURN VALUE

The toascii() function returns the value (c & 0x7f).

 ERRORS

No errors are returned.

 EXAMPLES

None.

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

isascii(), <ctype.h>.

DERIVATION

Derived from Issue 1 of the SVID.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]