added integrated C example

As discussed with Markus Voelter. Promised to add this.