Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
piranha wrote:Well, I said that is a post where the code didn't use a "..." string.
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.
Plus appending a \0 character to the array I used worked.
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.
Every good solution is obvious once you've found it.