2 ms·Which functions in particular?by rwmj 5y agoWhich functions in particular?junon 5y agostrchr(str, 0) == NULL memchr(str, 0, len) == NULLklyrs 5y agoThose 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.