Issue#27: C interface implementation

following issue #27
Also this mistake is repeating bellow...