HP-UX Reference (11i v2 04/09) - 3 Library Functions N-Z (vol 7)
u
unctrl(3X) unctrl(3X)
(CURSES)
NAME
unctrl — generate printable representation of a character
SYNOPSIS
#include <unctrl.h>
char *unctrl(chtype c);
DESCRIPTION
The unctrl() function generates a character string that is a printable representation of c.Ifc is a con-
trol character, it is converted to the ˆX notation. If c contains rendition information, the effect is
undefined.
RETURN VALUE
Upon successful completion,
unctrl() returns the generated string. Otherwise, it returns a null
pointer.
ERRORS
No errors are defined.
SEE ALSO
keyname(3X), wunctrl(3X), <unctrl.h>.
CHANGE HISTORY
First released in X/Open Curses, Issue 2.
X/Open Curses, Issue 4
The entry is rewritten for clarity. The RETURN VALUE section now states that the function may return
a null pointer. This condition was not specified in previous issues.
Section 3−−1132 Hewlett-Packard Company − 1 − HP-UX 11i Version 2: September 2004