strlen.c 100 B

1234567891011
  1. /* $Id$ */
  2. int
  3. strlen(s)
  4. char *s;
  5. {
  6. register char *b = s;
  7. while (*b++)
  8. ;
  9. return b - s - 1;
  10. }