Hi! I read the source code of strlen() function in a book called "The Standard C Library" and it is as follows:
What is size_t here?Code:/* strlen function */ #include <string.h> size_t (strlen)(const char *s) { /* find length of s[] */ const char *sc; for (sc = s; *sc != '\0'; ++sc) { return (sc - s) ; }