2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
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
))