1: /*
   2:  * Return the ptr in sp at which the character c appears;
   3:  * NULL if not found
   4:  */
   5: 
   6: #define NULL    0
   7: 
   8: char *
   9: index(sp, c)
  10: register char *sp, c;
  11: {
  12:     do {
  13:         if (*sp == c)
  14:             return(sp);
  15:     } while (*sp++);
  16:     return(NULL);
  17: }

Defined functions

Defined macros

NULL defined in line 6; used 1 times
  • in line 16
Last modified: 1979-01-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 388
Valid CSS Valid XHTML 1.0 Strict