C example compiles