home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 163_01 / index.c < prev    next >
Text File  |  1988-01-31  |  384b  |  8 lines

  1. /*
  2. ** return pointer to the first occurrence of c in s
  3. */
  4. index(s, c) char *s, c; {
  5.   while(*s) if(*s++ == c) return --s;
  6.   return 0;
  7.   }
  8.