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

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

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

__check_1(int, 0, toascii, int)

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

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