Issue#27: C interface implementation

following issue #27 
Please put the implementation should be in a c file