Discarding aspell suggestions with C API

Felipe Lema <[email protected]> Thu, 21 Nov 2013 12:59:02 -0300
Newsgroups gmane.comp.gnu.aspell.user
Message-ID <[email protected]>
Hi, everyone

The documentation instructs on how to recover all suggestions for a 
word. Since I'm only interested in the first suggestion, I was wondering 
if I _must_ call aspell_string_enumeration_next() until it throws NULL.

//...
const char *word = aspell_string_enumeration_next(aspell_elements);
while (aspell_string_enumeration_next(aspell_elements) )
     ;
delete_aspell_String_enumeration(elements);
//...


Thanks
Felipe Lema