|
|
1.1 ! root 1: /* ! 2: * Coherent Standard I/O Library ! 3: * Return the length of a string. ! 4: */ ! 5: ! 6: #include <stdio.h> ! 7: ! 8: strlen(s) ! 9: register char *s; ! 10: { ! 11: register char *ss; ! 12: ! 13: for (ss = s; *s++; ) ! 14: ; ! 15: return (s-ss-1); ! 16: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.