extern KADMOS_ERROR KADMOS_API respell_lookup
(ReSpellData *rsd, long code, const char *word,
char *results, int results_size, long text_format);
rsdrespell_init() initialized structure ReSpellData.codeword and results.wordresultsresults_sizeresults in bytes.text_formatNull character ('\0'). Here can be
specified 0 (normal) or TEXT_FORMAT_KADMOS_MULTIBYTE . In the latter case, word
is expected in multibyte representation and results returned in multibyte representation.RE_SUCCESS or KADMOS error type.
The function passes the given word to the activated dictionary and returns the results of the dictionary lookup. In case
of success the function returns RE_SUCCESS, in case of error it returns the related error type.
The error text can be retrieved by calling re_GetErrorText() or be displayed by calling re_DisplayErrorText().