Using %s to read into a float?
Using %d to read into a char array?

Dunno, back to school on the basics me thinks.

Or discover the delights of
gcc -W -Wall -ansi -pedantic