spellcheck_get_suggestion_at_index()

Get an indexed spelling suggestion for a word.

Synopsis:

#include <spellcheck_client.h>
 
const char* spellcheck_get_suggestion_at_index(spellcheck_suggestions_t *word_suggestions, int index)

Arguments:

word_suggestions

The spellcheck_suggestions_t structure from which you want to retrieve the spelling suggestion.

index

The index value of the spelling suggestion you want to retrieve.

Library:

libspellcheck_client

Description:

The spellcheck_get_suggestion_at_index() function retrieves a single spelling suggestion for a misspelled word from a spellcheck_suggestions_t structure, identified by a given index value. The returned pointer is owned by the corresponding spellcheck_suggestions_t structure and remains valid for the lifetime of that structure.

Returns:

A pointer to the spelling suggestion at the given index value in utf-8 encoding, NULL with errno set otherwise.

Last modified: 2013-12-21

comments powered by Disqus