|
|
1.1 ! root 1: /* @(#)strlen.c 4.1 (Berkeley) 12/21/80 */ ! 2: /* ! 3: * Returns the number of ! 4: * non-NULL bytes in string argument. ! 5: */ ! 6: ! 7: strlen(s) ! 8: register char *s; ! 9: { ! 10: register n; ! 11: ! 12: n = 0; ! 13: while (*s++) ! 14: n++; ! 15: return(n); ! 16: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.