Issue#27: C interface implementation

following issue #27
Also I would love this to be in `test-cinterface.cc` or `test-csnowcrash.cc` – the primary scope of this test is to test the C interface not the parser itself. Also please use `[cinterface]` test case tag.