To test the C examples, just run the makefile:
make 
then test by 
./demo
./eventdemo1
./eventdemo2