XmbResetIC(), XwcResetIC() - reset the state of an input context
char * XmbResetIC (XIC ic)
wchar_t * XwcResetIC (XIC ic)
The XmbResetIC(3) and XwcResetIC(3) functions reset input context to initial state. Any input pending on that context is deleted. Input method is required to clear preedit area, if any, and update status accordingly. Calling XmbResetIC(3) or XwcResetIC(3) does not change the focus.
The return value of XmbResetIC(3) is its current preedit string as a multibyte string. The return value of XwcResetIC(3) is its current preedit string as a wide character string. It is input method implementation dependent whether these routines return a non-NULL string or NULL.
The client should free the returned string by calling XFree(3).
XOpenIM()
Xlib