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

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

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

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

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