wunctrl(cchar_t *wc) { static wchar_t str[CCHARW_MAX + 1], *sp; if (Charable(*wc)) { const char *p = unctrl((unsigned) _nc_to_char((wint_t) CharOf(*wc))); for (sp = str; *p; ++p) { *sp++ = _nc_to_widechar(*p); } *sp = 0; return str; } else return wc->chars; }
NCURSES_SP_NAME(wunctrl) (NCURSES_SP_DCLx cchar_t *wc) { static wchar_t str[CCHARW_MAX + 1], *wsp; if (Charable(*wc)) { const char *p = NCURSES_SP_NAME(unctrl) (NCURSES_SP_ARGx (unsigned) _nc_to_char((wint_t)CharOf(*wc))); for (wsp = str; *p; ++p) { *wsp++ = (wchar_t) _nc_to_widechar(*p); } *wsp = 0; return str; } else return wc->chars; }
NCURSES_SP_NAME(wunctrl) (NCURSES_SP_DCLx cchar_t *wc) { static wchar_t str[CCHARW_MAX + 1], *wsp; wchar_t *result; if (wc == 0) { result = 0; } else if (SP_PARM != 0 && Charable(*wc)) { const char *p = NCURSES_SP_NAME(unctrl) (NCURSES_SP_ARGx (unsigned) _nc_to_char((wint_t)CharOf(*wc))); for (wsp = str; *p; ++p) { *wsp++ = (wchar_t) _nc_to_widechar(*p); } *wsp = 0; result = str; } else { result = wc->chars; } return result; }