2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
5 C99 function strcspn().
8 /*****************************************************************************
20 Calculates the length of the initial segment of str which consists
21 entirely of characters not in reject.
24 str - The string to check.
25 reject - Characters which must not be in str.
28 Length of the initial segment of str which doesn't contain any
29 characters from reject.
36 strcpy (buffer, "Hello ");
39 strcspn (buffer, " ");
42 strcspn (buffer, "H");
50 ******************************************************************************/
52 size_t n
= 0; /* Must set this to zero */
54 while (*str
&& !strchr (reject
, *str
))