2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 ANSI C function strspn().
8 /*****************************************************************************
20 Calculates the length of the initial segment of str which consists
21 entirely of characters in accept.
24 str - The string to check.
25 accept - Characters which have to be in str.
28 Length of the initial segment of str which contains only
29 characters from accept.
36 strcpy (buffer, "Hello ");
39 strspn (buffer, "Helo");
42 strspn (buffer, "xyz");
50 ******************************************************************************/
54 while (*str
&& strchr (accept
, *str
))