Hi,
I've already written a similar captcha-solver that works on cat-dog pictures, however, it's written completely in Python and to be honest, I find it too cumbersome to rewrite it into C.
Please let me know if you were still interested, and I can guarantee that Python's a very "pasty" language and can be easily integrated into your project/language of choice.
Best Regards,
VolatileIO