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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top