Skip to main content
12 events
when toggle format what by license comment
Dec 2, 2010 at 0:15 history made wiki Post Made Community Wiki
Dec 2, 2010 at 0:04 history edited Gary CC BY-SA 2.5
Removed the NULL terminators
Dec 2, 2010 at 0:04 comment added Gary Edited to remove the \0 terminators because I couldn't sleep at night thinking about this answer lurking on the Internet.
Nov 21, 2010 at 19:15 comment added Gary @raimesh I can't remember the title but it had a big yellow C on the front. And it may not have recommended the NUL - that could just be my poor memory. It's been a long time since I've done any C in anger so I wouldn't read too much into it.
Nov 21, 2010 at 12:33 comment added Rob Gilliam 1991? That's not old for a C language manual - the 1st edition of K&R was published in 1978! Just intrigued that there was ever a manual out there that suggested you needed to put \0 at the end of your string constants. (Actually, looking at it again, did you mean to put \n?)
Nov 15, 2010 at 10:28 comment added Gary @raimesh A very old one (around 1991). Can't remember which.
Nov 15, 2010 at 9:53 comment added Rob Gilliam Which manual were you using that added extra NUL characters at the end of your strings?
Nov 12, 2010 at 12:19 comment added Gary Edited article to support OP requirements.
Nov 11, 2010 at 22:43 history edited Gary CC BY-SA 2.5
More formatting
Nov 11, 2010 at 22:37 history edited Gary CC BY-SA 2.5
Much more detail on the path to "post-pointer"
Nov 9, 2010 at 21:04 comment added Mike Dunlavey ++ That's more or less the way I taught the subject.
Nov 9, 2010 at 17:30 history answered Gary CC BY-SA 2.5