1: # include   <sccs.h>
   2: 
   3: SCCSID(@(#)length.c	8.1	12/31/84)
   4: 
   5: /*
   6: **  FIND STRING LENGTH
   7: **
   8: **	The length of string `s' (excluding the null byte which
   9: **		terminates the string) is returned.
  10: */
  11: 
  12: length(s)
  13: char    *s;
  14: {
  15:     register int    l;
  16:     register char   *p;
  17: 
  18:     l = 0;
  19:     p = s;
  20:     while (*p++)
  21:         l++;
  22:     return(l);
  23: }

Defined functions

length defined in line 3; never used
Last modified: 1986-04-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 659
Valid CSS Valid XHTML 1.0 Strict