Re: Are bad developer libraries the problem with M$ software?
On Mon, Nov 25, 2002 at 08:59:02PM -0800, The Amazing Dragon wrote:
> If you know the total
> length and the number of free characters you already know where the end
> of the existing string (dst+total-free, or dst+used) at which point why
> not use strncpy() which doesn't have the overhead of using a strlen()
> equivilant internally?
In that case, sure, no need to strncpy (in fact, in my usage I often use
memcpy, not even strncpy).
But I found your words a little confusing:
> > > Also given the total space it is very easy for
^^^ searching for the end of the string is what strlen does, that's why my
confusion.
> > > this also has
Regards,
Luciano Rocha
--
Consciousness: that annoying time between naps.
Received on Tue Nov 26 14:47:57 2002
This archive was generated by hypermail 2.1.8
: Wed Aug 23 2006 - 14:02:44 EDT
|