??? 03/03/10 07:52 Modified: 03/03/10 07:55 Read: times |
#173768 - Strings in 'C' *must* be NUL-terminated Responding to: ???'s previous message |
Jan Waclawek said:
The fundamental point mentioned by Andy above is, that strings in C are terminated by a zero character. Hmm... when does "not being mysterious" become "spoon-feeding"...?! ;-) It is left as an exercise for the student to consider what happens when the NUL termination is missing... Note that this is standard 'C' stuff - nothing specific to Keil or the 8051 at all. See: http://www.8052.com/forum/read/173659 And: http://www.8052.com/forum/read/173670 |