79513426

Date: 2025-03-17 00:25:48
Score: 1
Natty:
Report link

Basically strlen iterate the string until he found a null-character:

strlen implementation

int strlen(const char *str) {
    int i = 0;
    while (str[i] != '\0') {
        i++;
    }
    return i;
}

So this is why "dog\0\0\0" length is 3 and not 6

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: hacktooth