home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
216.lha
/
EdLib_v1.0
/
strcspn.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
|
1996-02-15
|
316 b
|
17 lines
/* edlib version 1.0 of 04/08/88 */
/* Return the number of characters NOT from "charset" that are at the
* BEGINNING of string "string".
*/
int strcspn(str, charset)
char *str, *charset;
{
char *temp = str;
while (!strchr(charset, *temp))
++temp;
return(temp - str);
}