why convert this? this should still work in C
just delete the first two lines....