While it turns out it does read past the null, in my opinion, it shouldn't. It breaks the whole concept of a string in C. Which incidentally, is what the s there stands for.Originally Posted by pianorain
If you want to read nulls, you should be using fread.
Quzah.