Oops, never mind.  memccpy may not nul-terminate, too...
(there is strlcpy in libbsd, though).

Cheers.

On 7/17/12, ohav chochmah <[email protected]> wrote:
> Hi,
>
> Why not reuse memccpy (in glibc)? as in 'memccpy(to, from, '\0', size)'.
> Not only for sake of reusing, but memccpy is highly optimized for
> ia64, and may be optimized for other arches in the future.
>
> Cheers,
> philomath.
>

Reply via email to