1: #ifndef lint
   2: static char sccsid[] = "@(#)index.c	5.2 (Berkeley) 1/22/85";
   3: #endif
   4: 
   5: #include <stdio.h>
   6: 
   7: /*
   8:  *	return pointer to character c
   9:  *
  10:  *	return codes:
  11:  *		NULL  -  character not found
  12:  *		pointer  -  pointer to character
  13:  */
  14: 
  15: char *
  16: index(str, c)
  17: register char c, *str;
  18: {
  19:     for (; *str != '\0'; str++) {
  20:         if (*str == c)
  21:             return str;
  22:     }
  23: 
  24:     return NULL;
  25: }

Defined functions

index defined in line 15; never used

Defined variables

sccsid defined in line 2; never used
Last modified: 1986-01-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 583
Valid CSS Valid XHTML 1.0 Strict