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 * <<strcmp>>---character string compare
21 * int strcmp(const char *<[a]>, const char *<[b]>);
24 * int strcmp(<[a]>, <[b]>)
27 * <<strcmp>> compares the string at <[a]> to
28 * the string at <[b]>.
30 * If <<*<[a]>>> sorts lexicographically after <<*<[b]>>>,
31 * <<strcmp>> returns a number greater than zero. If the two
32 * strings match, <<strcmp>> returns zero. If <<*<[a]>>>
33 * sorts lexicographically before <<*<[b]>>>, <<strcmp>> returns a
34 * number less than zero.
36 * <<strcmp>> is ANSI C.
37 * <<strcmp>> requires no supporting OS subroutines.
50 Compares string1 to s1 character by character.
51 This function starts comparing the first character of each string.
52 If they are equal to each other continues with the following pair
53 until the characters differ or until end of string is reached.
54 @return a value indicating the lexicographical relation between the strings
55 @param s1 Null-terminated string to compare.
56 @param s2 Null-terminated string to compare.
59 strcmp (const char *s1, const char *s2)
61 const unsigned char* p1=(const unsigned char*)s1;
62 const unsigned char* p2=(const unsigned char*)s2;
75 Compare the wide-character string pointed to by s1 to the wide-character
76 string pointed to by s2.
77 @return an integer greater than, equal to, or less than zero, if the
78 wide-character string pointed to by s1 is greater than, equal to,
79 or less than the wide-character string pointed to by s2.
81 EXPORT_C int wcscmp (const wchar_t *s1, const wchar_t *s2)