- Joined
- Oct 27, 2002
- Messages
- 23,746
- Trophies
- 4
- Age
- 45
- Location
- Engine room, learning
- XP
- 15,563
- Country
-
I'm not sure to understand what you wanted to show by placing a \0 in the center of your string.
what about the terminating character ? the 8th that you didn't initialize.
when allocating the bufffer, what if the 8th position already has a value not zero? is it set to 0 automatically when memcopying shorter string into the buffer? I've been told to always set it manually, but maybe the compiler takes care of that.
what about the terminating character ? the 8th that you didn't initialize.
when allocating the bufffer, what if the 8th position already has a value not zero? is it set to 0 automatically when memcopying shorter string into the buffer? I've been told to always set it manually, but maybe the compiler takes care of that.
Last edited by Cyan,