Download CS240 Programming in C

Transcript
Implementation of strlen
char * strlen(char * src) {
int i = 0;
while (src[i] != ‘\0’) {
i++;
}
return i;
}
Related documents