M
Micah Cowan
CBFalconer said:Yes it is different. strcpy and strcat will write to unowned
memory, and blow something else up.
If you abuse it. Which has nothing to do with what I said was not
different (the ability to remove a leading part of the output string),
and yet, is _still_ not different, anyway, as strlcpy() is also quite
capable of the same thing.
Not if you use strlcpy/cat. Then you find out things didn't fit,
and the size needed to allow them to fit.
And that I wasted plenty of valuable time. And: whoa! strlen() already
does that, without the useless copy.
Nobody is insisting on anything.
If your statement were correct, this thread would not have been started.
Please go back to the OP and read it. That _is_ the basis of this thread
(perhaps you're confusing it with the *_s() one?).
Your posts indicate that you have
missed some of the advantages available. I am trying to fill in
those gaps.
Since you have still failed to name a single advantage over
strlen()+strcpy() (and seem to be deliberately ignoring several
disadvantages), I'd say you haven't done that.