unctrl(3curses)


unctrl -- generate printable representation of a character

Synopsis

cc [options] file -lcurses
#include <unctrl.h>

char *unctrl(chtype c);

Description

The unctrl(3curses) function generates a character string that is a printable representation of c. If c is a control character, it is converted to the ^X notation. If c contains rendition information, the effect is undefined.

Return value

Upon successful completion, unctrl(3curses) returns the generated string. Otherwise, it returns a null pointer.

Errors

No errors are defined.

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

keyname(3curses), wunctrl(3curses), unctrl(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004