home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d110 / pdc.lha / Pdc / lib / index.c < prev    next >
C/C++ Source or Header  |  1987-10-28  |  301b  |  16 lines

  1.  X/*
  2.  X * index - find first occurrence of a character in a string
  3.  X */
  4.  X
  5. #define  NULL      0
  6.  
  7. char *                                 /* found char, or NULL if none */
  8. index(s, charwanted)
  9. CONST char *s;
  10. char charwanted;
  11. {
  12.          extern char *strchr();
  13.  
  14.          return(strchr(s, charwanted));
  15. }
  16.