NetBSD/gnu/lib/libregex/test/printchar.c
1993-04-08 01:12:23 +00:00

15 lines
229 B
C

void
printchar (c)
char c;
{
if (c < 040 || c >= 0177)
{
putchar ('\\');
putchar (((c >> 6) & 3) + '0');
putchar (((c >> 3) & 7) + '0');
putchar ((c & 7) + '0');
}
else
putchar (c);
}