Performing a Spelling Check with the SplCheck Function

Once you have set SPLBUFFER, call SplCheck. SplCheck finds the first word in the input buffer and searches the main dictionary, internal user dictionaries, and external dictionaries for that word.

If the spelling checker finds that the word is spelled correctly, it moves on to the next word. If SplCheck finds a misspelled word, it returns the location of the word in the buffer, the length of the word, and an error code describing the general type of misspelling. If the spelling checker gets to the end of the input buffer without finding a spelling error, it returns SPL_OK to SPLBUFFER.