strlen.c 314 B

123456789101112131415161718
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /* $Id$ */
  6. #include <string.h>
  7. size_t
  8. strlen(const char *org)
  9. {
  10. register const char *s = org;
  11. while (*s++)
  12. /* EMPTY */ ;
  13. return --s - org;
  14. }