sizeof(char)
which totally doesn't make sense. The sizeof function returns the size in bytes of the type you're passing. The size of char is 1 byte. For me, at least, I never use the function sizeof with char because it's just a waste. I just used it for doubles and floats and other complicated objects just to be on the safe side :-), so that I won't access memory regions that doesn't belong to my program ;-).