Mmmh, when I let it run on my PC, it does indeed work. But since it's designed to run on an Atmel Chip, I have to cross-compile and there seems to be something going wrong with scanf and sscanf.
Oh, well, nevermind, it will work with atof just as well. At least I'm happy that I seem to be able to write code that actually works