1: #if defined(LIBC_SCCS) && !defined(lint)
   2: static char sccsid[] = "@(#)index.c	5.2 (Berkeley) 3/9/86";
   3: #endif LIBC_SCCS and not lint
   4: 
   5: /*
   6:  * Return the ptr in sp at which the character c appears;
   7:  * NULL if not found
   8:  */
   9: 
  10: #define NULL    0
  11: 
  12: char *
  13: index(sp, c)
  14: register char *sp, c;
  15: {
  16:     do {
  17:         if (*sp == c)
  18:             return(sp);
  19:     } while (*sp++);
  20:     return(NULL);
  21: }

Defined functions

index defined in line 12; never used

Defined variables

sccsid defined in line 2; never used

Defined macros

NULL defined in line 10; used 1 times
  • in line 20
Last modified: 1986-03-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 560
Valid CSS Valid XHTML 1.0 Strict