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 * <<strchr>>---search for character in string
21 * char * strchr(const char *<[string]>, int <[c]>);
24 * char * strchr(<[string]>, <[c]>);
27 * This function finds the first occurence of <[c]> (converted to
28 * a char) in the string pointed to by <[string]> (including the
29 * terminating null character).
31 * Returns a pointer to the located character, or a null pointer
32 * if <[c]> does not occur in <[string]>.
34 * <<strchr>> is ANSI C.
35 * <<strchr>> requires no supporting OS subroutines.
47 Find character in string.
48 Returns the first occurrence of i in string.
49 The null-terminating character is included as part of the string
50 and can also be searched.
51 @return a pointer to the first occurrence of i in string is returned.
52 otherwise NULL is returned.
53 @param s Null-terminated string scanned in the search.
54 @param i Character to be found.
57 strchr (const char *s, int i)
65 return (char *) (s - 1);
72 index (const char *s, int i)