سؤال

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