Posted: Fri Feb 01, 2008 2:27 am
Yes, and that is why you have to add a '\0' to the end of it. I was expressing my surprise at this surprising you.piranha wrote:Well, I said that is a post where the code didn't use a "..." string.
Of course. What I meant is that you don't have to do that array thing with '\0' appending, because "..." does that automatically for you - with the difference that character constants end up in .data, string constants in .rodata.Plus appending a \0 character to the array I used worked.