Issue#27: C interface implementation

following issue #27
Hi @pksunkara, you are right about the comment I'll correct it, probably I've copy it from the other one. and the other one too!