News for hackers. Stuff that matters.
Re:A 100LOC C impl of memset, that is faster than glibc's by rwmj on Friday November 12, 2021 @05:11PM (#29205137)
Which functions in particular?
Re:A 100LOC C impl of memset, that is faster than glibc's by junon on Friday November 12, 2021 @08:49PM (#29206586)

    strchr(str, 0) == NULL
    memchr(str, 0, len) == NULL
Re:A 100LOC C impl of memset, that is faster than glibc's by klyrs on Friday November 12, 2021 @11:34PM (#29207392)
Those find the first zero -- not the number of contiguous zeros.
Re:A 100LOC C impl of memset, that is faster than glibc's by junon on Saturday November 13, 2021 @05:20PM (#29213672)
Oops, you're right. I was going to reach for `strcspn` but then realized it doesn't work for null bytes.

Huh. OP is right, there is no good function for this in the standard library.