home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
206.lha
/
C-Functions
/
strinstr.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-02-14
|
324b
|
13 lines
#include <exec/types.h>
int strinstr (s,c) /* Check if character c is in string s */
UBYTE s[]; /* Return first pos if found, else NULL */
int c; /* Will return NULL if '\0' was searched for */
{
register int i=0;
while ( s[i] != c && s[i] ) i++;
return ( s[i] ? i+1 : NULL );
}