~skeeto/public-inbox

2 2

Re: strcpy: a niche function you don't need

Henrique Almeida
Details
Message ID
<CAE3-N2yepgEjXZPtFZDDKvkN6O1onpUadaOvCoM5KdbTt9YX2A@mail.gmail.com>
DKIM signature
pass
Download raw message
 Hello, strlcpy() is available in libbsd:

 https://libbsd.freedesktop.org/wiki/

-- 
 Henrique Dante de Almeida
 hdante@gmail.com

Re: strcpy: a niche function you don't need

Details
Message ID
<20210731003221.cqrzq6fxkgrxujkh@nullprogram.com>
In-Reply-To
<CAE3-N2yepgEjXZPtFZDDKvkN6O1onpUadaOvCoM5KdbTt9YX2A@mail.gmail.com> (view parent)
DKIM signature
missing
Download raw message
The point of the article is that anywhere you might use strlcpy() you 
should instead use memcpy() anyway. There are no advantages to using 
strlcpy() even if it is available.

Re: strcpy: a niche function you don't need

Henrique Almeida
Details
Message ID
<CAE3-N2zEJ3xW++dGtWvfHq254ifgjH6oRjExaOFwAVVWg+MKgA@mail.gmail.com>
In-Reply-To
<20210731003221.cqrzq6fxkgrxujkh@nullprogram.com> (view parent)
DKIM signature
pass
Download raw message
 Makes sense, thanks for the clarification,

Em sex., 30 de jul. de 2021 às 21:32, Christopher Wellons
<wellons@nullprogram.com> escreveu:
>
> The point of the article is that anywhere you might use strlcpy() you
> should instead use memcpy() anyway. There are no advantages to using
> strlcpy() even if it is available.



-- 
 Henrique Dante de Almeida
 hdante@gmail.com
Reply to thread Export thread (mbox)