News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.