Mail Archives: djgpp-workers/2003/01/10/15:41:44
> Date: Thu, 09 Jan 2003 21:35:54 +0000
> From: "Richard Dawe" <rich AT phekda DOT freeserve DOT co DOT uk>
>
> Here's revision 2 of my implementation of strlcat & strlcpy
> for DJGPP.
On second thought, I have a couple of comments:
> + @code{strlcat} may be used as a less ambiguous alternative
> + to @code{strncat} (@pxref{strncat}). Unlike @code{strncat},
> + @code{strlcat} @emph{always} nul-terminates the destination @var{dest}
I might be forgetting something, but IIRC, strncat also always
nul-terminated the result, didn't it?
> + If @var{dest} and @var{src} are overlapping buffers, the behavior
> + is undefined.
What does this mean, exactly? The specific implementation we have is
deterministic, right? So it is possible to tell exactly what does it
do when the buffers overlap, right? If so, I think we should describe
the actual behavior of our implementation.
- Raw text -