Strings In Depth1 / 18
Up next

strlen

#include <stdio.h>
#include <string.h>

int main(void) {
    const char *s = "hello";
    printf("%zu\n", strlen(s));
    return 0;
}
What you're solving

count bytes up to the NUL terminator