A generic way of setting error strings.
A generic way of setting error strings. Sets the xi_lasterror variable to a user-specified string. The string is not duplicated, so it must stay alive for as long as the program exists (preferably), or at least until a new error string is set.
A near-future version of this call will check for a user- supplied hook (passed to xi_init() on startup) to call whenever a new error message is passed to it. This hook could be used to display error-message boxes or a way to solve problems.
Using GNU gettext() etc. for internationalised, or even just English, text strings is of course recommended.