Re:A 100LOC C impl of memset, that is faster than glibc's
by junon on Friday November 12, 2021 @02:50PM
(#29203773)
There are a number of standard functions that can achieve this, namely in string.h. Performance is a question of course.
[ Parent
| on HN ]
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.