Because there is no difference in C between '\n' and 0x0a.

What compiler and standard library do you use?