home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d3xx
/
d340
/
plplot.lha
/
PlPlot
/
plplot.lzh
/
plplot
/
src
/
stsearch.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-03-23
|
367 b
|
21 lines
/* Searches string str for character chr (case insensitive) */
#include "plplot.h"
#include <ctype.h>
#ifdef PLSTDC
#include <string.h>
#else
extern char *strchr();
#endif
PLINT stsearch(str,chr)
char *str,chr;
{
if (strchr(str,chr))
return((PLINT)1);
else if(strchr(str,toupper(chr)))
return((PLINT)1);
else
return((PLINT)0);
}