summaryrefslogtreecommitdiff
path: root/src/ctype/toascii.c
blob: 10963818e1df1d5c310adcd7e5399ac684b21419 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <ctype.h>

/** convert a character to 7-bit ASCII **/

int toascii(int c)
{
	SIGNAL_SAFE(0);
	return (c & 0x7f);
}

/***
converts ARGUMENT(c) to 7-bit ASCII.
***/

/*
RETURN(ARGUMENT(c) & 0x7f)
XOBSOLETE(700)
XOPEN(4)
*/