[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: removing coreutils' final strncpy uses
From: |
ohav chochmah |
Subject: |
Re: removing coreutils' final strncpy uses |
Date: |
Tue, 17 Jul 2012 11:24:56 +0200 |
Oops, never mind. memccpy may not nul-terminate, too...
(there is strlcpy in libbsd, though).
Cheers.
On 7/17/12, ohav chochmah <address@hidden> 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.
>