Domanda

I would like to use hunspell in my C program. I'm working in a Unix environment (shell) and it has already hunspell built in. I know I can use by typing hunspell filename at the command line, but I wanna know how to use it inside my program. Ultimately I want to store every dictionary word but first I just want to know how to import it into my program. Like is there #include type of thing?

È stato utile?

Soluzione

Yes, there's a hunspell API you can use through #include <hunspell/hunspell.h> The API details can be found at the hunspell documentation page (hunspell3.pdf). Examples are a bit scarce, but this or this should get you started.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top