Update contrib.
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
16 * <<strspn>>---find initial match
21 * size_t strspn(const char *<[s1]>, const char *<[s2]>);
24 * size_t strspn(<[s1]>, <[s2]>)
27 * This function computes the length of the initial segment of
28 * the string pointed to by <[s1]> which consists entirely of
29 * characters from the string pointed to by <[s2]> (excluding the
30 * terminating null character).
32 * <<strspn>> returns the length of the segment found.
34 * <<strspn>> is ANSI C.
35 * <<strspn>> requires no supporting OS subroutines.
47 Get length of substring composed of given characters.
48 Scans s1 character by character, returning the number of characters read before
49 the first character not included in s2 is found.
50 The search does not include terminating null-characters.
51 @return the length of the initial substring of s1
52 that is only composed of characters included in s2.
53 @param s1 Null-terminated string to be scanned.
54 @param s2 Null-terminated string containing character set.
57 strspn (const char *s1, const char *s2)