Issue#27: C interface implementation

following issue #27 
Also you might want to wrap an array replacement for a vector into a struct with the buffer size.