/* rdchar.c 4.1 83/03/09 */
* rdchar: returns a readable representation of an ASCII char, using ^ notation.
* Due to a bug in isprint, this prints spaces as ^`, but this is OK
* because we want something to show up on the screen.
ret
[0] = ((c
&0377) > 0177) ? '\'' : ' ';
ret
[1] = isprint(c
) ? ' ' : '^';
ret
[2] = isprint(c
) ? c
: c
^0100;
for (p
=ret
; *p
==' '; p
++)