Issue#27: C interface implementation

following issue #27 
See my remarks above on not using `STL`.