Live data from Hacker News

6 years and 360 patches to clean all instances of strnpy out of the Linux kernel

smist08.wordpress.com

1–10 of 42 posts

Re: 6 years and 360 patches to clean all instances of strnpy out of the Linux kernel

#3
post #2

As I expected, this is about removing strncpy() from the Linux Kernel, not glib. Removing strncpy() from glib would be awful for applications :) Edit. Meant glibc, thanks mattst88

Confusion comes from Linux being used as a replacement term for any distro

Re: 6 years and 360 patches to clean all instances of strnpy out of the Linux kernel

#7
BTW: I was experimenting a bit more with string and string view (strv) types in my e toy library: https://codeberg.org/uecker/noplate/

The tests are maybe better examples than those on godbolt. https://codeberg.org/uecker/noplate/src/branch/main/tests/st...

Re: 6 years and 360 patches to clean all instances of strnpy out of the Linux kernel

#10
post #7

BTW: I was experimenting a bit more with string and string view (strv) types in my e toy library: https://codeberg.org/uecker/noplate/ The tests are maybe better examples than those on godbolt. https://codeberg.org/uecker/noplate/src/branch/main/tests/st...

How does strv2cstr work? I assume it doesn't allocate, so not sure how it can add a null terminator.
Post reply on HN