The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group


setcchar - set cchar_t from a wide character string and rendition


#include <curses.h>

int setcchar(cchar_t *wcval, const wchar_t *wch, const attr_t attrs,
             short color_pair, const void *opts);


The setcchar() function initialises the object pointed to by wcval according to the character attributes in attrs, the colour pair in color_pair and the wide character string pointed to by wch.

The opts argument is reserved for definition in a future edition of this document. Currently, the application must provide a null pointer as opts.


Upon successful completion, setcchar() returns OK. Otherwise, it returns ERR.


No errors are defined.


Characters , attroff(), can_change_color(), getcchar(), <curses.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]