freebsd-skq/gnu/lib/libregex/test/printchar.c
1993-07-30 20:16:53 +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);
}