freebsd-dev/gnu/lib/libregex/test/printchar.c

15 lines
229 B
C
Raw Normal View History

1993-07-30 20:16:53 +00:00
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);
}