home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume12
/
cnews
/
part01
/
libc
/
strings
/
index.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
|
1987-10-19
|
242 b
|
16 lines
/*
* index - find first occurrence of a character in a string
*/
#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));
}