strchr(str, 0) == NULL memchr(str, 0, len) == NULL
Huh. OP is right, there is no good function for this in the standard library.