8 typedef struct Hunhandle Hunhandle
;
10 Hunhandle
*Hunspell_create(const char * affpath
, const char * dpath
);
11 void Hunspell_destroy(Hunhandle
*pHunspell
);
13 /* spell(word) - spellcheck word
14 * output: 0 = bad word, not 0 = good word
16 int Hunspell_spell(Hunhandle
*pHunspell
, const char *);
18 char *Hunspell_get_dic_encoding(Hunhandle
*pHunspell
);
20 /* suggest(suggestions, word) - search suggestions
21 * input: pointer to an array of strings pointer and the (bad) word
22 * array of strings pointer (here *slst) may not be initialized
23 * output: number of suggestions in string array, and suggestions in
24 * a newly allocated array of strings (*slts will be NULL when number
25 * of suggestion equals 0.)
27 int Hunspell_suggest(Hunhandle
*pHunspell
, char*** slst
, const char * word
);