added C version of simple_example
fix type in C simple example
add c example to makefile and fix "make clean"
fix examples/makefile for C example
minor memory leak in C example
error detection and memory leaks in c example
style fixes in c example
Merge pull request #427 from haneefmubarak/c-examples

C example