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 >
Wrap
C/C++ Source or Header
|
1987-10-28
|
301b
|
16 lines
X/*
X * index - find first occurrence of a character in a string
X */
X
#define NULL 0
char * /* found char, or NULL if none */
index(s, charwanted)
CONST char *s;
char charwanted;
{
extern char *strchr();
return(strchr(s, charwanted));
}