Back to index

courier  0.68.2
ispell.h
Go to the documentation of this file.
00001 #ifndef       ispell_h
00002 #define       ispell_h
00003 /*
00004 */
00005 
00006 /*
00007 ** C interface to ispell.  Gimme a line of text, and I'll return a link
00008 ** list of mispelled words, plus their suggested derivations.
00009 */
00010 
00011 struct ispell_misspelled;
00012 struct ispell_suggestion;
00013 
00014 struct ispell {
00015        char *ispell_buf;
00016        struct ispell_misspelled *first_misspelled;
00017 } ;
00018 
00019 struct ispell_misspelled {
00020        struct ispell_misspelled *next;
00021        const char *misspelled_word;
00022        int word_pos;
00023        struct ispell_suggestion *first_suggestion;
00024 } ;
00025 
00026 struct ispell_suggestion {
00027        struct ispell_suggestion *next;
00028        const char *suggested_word;
00029 } ;
00030 
00031 struct ispell *ispell_run(const char *dictionary, const char *line);
00032 void ispell_free(struct ispell *);
00033 #endif