On Mon, Sep 30, 2013 at 7:34 PM, Linus Torvalds
<torva...@linux-foundation.org> wrote:
> On Mon, Sep 30, 2013 at 10:12 AM, Arnaldo Carvalho de Melo
> <a...@ghostprotocols.net> wrote:
>>
>> Checking why that strlcpy failed...
>
> I don't think glibc does strlcpy. It's not a standard C function, and
> it's somewhat controversial (although I dislike strncpy more with the
> crazy zero-padding, ugh).

Indeed, e.g. on Ubuntu it's in libbsd, so you also need to #include
<bsd/string.h> and link with -lbsd.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to