#include <stdio.h>
size_t my_strlen(const char *s) {
const char *p = s;
while (*p != '\0') {
p++;
}
return (size_t)(p - s);
}
int main(void) {
printf("%zu\n", my_strlen("counted"));
return 0;
}subtract pointers to get the count