3 ms·
Those find the first zero -- not the number of contiguous zeros.
by klyrs 5y ago
Those find the first zero -- not the number of contiguous zeros.
- junon 5y agoOops, 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.