begin C version; doesn't compile