[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Aspell-user] Trying to write a VERY simple app using aspell

From: Erik Ragnerstam
Subject: [Aspell-user] Trying to write a VERY simple app using aspell
Date: 15 Sep 2003 22:09:19 +0200


I'm trying to write a simple app that lists all the words in the main
dictionary. The problem is that the program terminate when I call the
function aspell_word_list_elements. The aspell docs give me no hints and
the example program  (in the docs) have exact the same problem.

Please help me, i'm totally stuck!

/ Erik

--- Source code ---
#include <stdio.h>
#include <aspell.h>

int main ()
        AspellConfig *config;
        AspellCanHaveError *ret;
        AspellSpeller *speller;
        const AspellWordList *wordlist;
        config = new_aspell_config ();
        printf ("Using: %s\n", aspell_config_retrieve (config, "lang"));
        ret = new_aspell_speller (config);
        delete_aspell_config (config);
        speller = to_aspell_speller (ret);
        wordlist = aspell_speller_main_word_list (speller);
        AspellStringEnumeration *els;

        /* Program terminate!! */
        els = aspell_word_list_elements (wordlist); 
        return 0;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]