Issue#27: C interface implementation

following issue #27 
In a final version, please remove this comment.