sl@0: /* sl@0: * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * FUNCTION sl@0: * <>---locale specific character string compare sl@0: * INDEX sl@0: * strcoll sl@0: * ANSI_SYNOPSIS sl@0: * #include sl@0: * int strcoll(const char *<[stra]>, const char * <[strb]>); sl@0: * TRAD_SYNOPSIS sl@0: * #include sl@0: * int strcoll(<[stra]>, <[strb]>) sl@0: * char *<[stra]>; sl@0: * char *<[strb]>; sl@0: * <> compares the string pointed to by <[stra]> to sl@0: * the string pointed to by <[strb]>, using an interpretation sl@0: * appropriate to the current <> state. sl@0: * RETURNS sl@0: * If the first string is greater than the second string, sl@0: * <> returns a number greater than zero. If the two sl@0: * strings are equivalent, <> returns zero. If the first sl@0: * string is less than the second string, <> returns a sl@0: * number less than zero. sl@0: * PORTABILITY sl@0: * <> is ANSI C. sl@0: * <> requires no supporting OS subroutines. sl@0: * QUICKREF sl@0: * strcoll ansi pure sl@0: * sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: #include sl@0: sl@0: /** sl@0: Compares a to b character by character according to the character table sl@0: set by current locale. sl@0: This function starts comparing the first character of each string. sl@0: If they are equal to each other continues with the following pair sl@0: until the characters differ or until end of string is reached. sl@0: @return a value indicating the lexicographical relation between the strings sl@0: @param a Null-terminated string to compare. sl@0: @param b Null-terminated string to compare. sl@0: */ sl@0: EXPORT_C int sl@0: strcoll (const char *a, const char *b) sl@0: { sl@0: /* Since we don't yet support locales, this is easy! */ sl@0: return strcmp (a, b); sl@0: }