fixed spelling in C API

I don't know if this actually is a good idea, as it might break existing code, but an API without typos (hopefully I spotted all of them) may be worth it...