home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 344b.lha / plplot_v2.6 / src / stsearch.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-01-27  |  367 b   |  21 lines

  1. /* Searches string str for character chr (case insensitive) */
  2.  
  3. #include "plplot.h"
  4. #include <ctype.h>
  5. #ifdef PLSTDC
  6. #include <string.h>
  7. #else
  8. extern char *strchr();
  9. #endif
  10.  
  11. PLINT stsearch(str,chr)
  12. char *str,chr;
  13. {
  14.     if (strchr(str,chr))
  15.         return((PLINT)1);
  16.     else if(strchr(str,toupper(chr)))
  17.         return((PLINT)1);
  18.     else
  19.         return((PLINT)0);
  20. }
  21.