Previous: , Up: Misc   [Contents][Index]


11.3 unctrl—get printable representation of a character

Synopsis

#include <unctrl.h>
char *unctrl(int c);
int unctrllen(int c);

Description
unctrl is a macro which returns the printable representation of c as a string. unctrllen is a macro which returns the length of the printable representation of c.


Returns
unctrl returns a string of the printable representation of c.

unctrllen returns the length of the string which is the printable representation of c.


Portability
unctrl and unctrllen are not ANSI C.

No supporting OS subroutines are required.