News for hackers. Stuff that matters.
Re:The Sad State of C Strings by unwind on Wednesday February 10, 2016 @07:39AM (#11072313)
But remember to rename the function, since all function names starting with "str" are reserved in C.

To keep with the spirit of the article, calling strlen() just to allow convenient use of memmove() seems a bit counter-intuitive, I'd roll the two together into a copying loop instead.

Re:The Sad State of C Strings by anon4 on Wednesday February 10, 2016 @08:28AM (#11072545)
And then you do infinite copying if you're catenating a string with itself.