ReactOS 0.4.15-dev-7958-gcd0bb1a
strcoll.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/sdk/crt/string/strcoll.c
5 * PURPOSE: Unknown
6 * PROGRAMER: Unknown
7 * UPDATE HISTORY:
8 * 25/11/05: Added license header
9 */
10
11#include <precomp.h>
12
13/* Compare S1 and S2, returning less than, equal to or
14 greater than zero if the collated form of S1 is lexicographically
15 less than, equal to or greater than the collated form of S2. */
16
17#if 1
18/*
19 * @unimplemented
20 */
21int strcoll(const char* s1, const char* s2)
22{
23 return strcmp(s1, s2);
24}
25
26/*
27 * @unimplemented
28 */
29int _stricoll(const char* s1, const char* s2)
30{
31 return _stricmp(s1, s2);
32}
33
34#else
35int strcoll (const char* s1,const char* s2)
36{
37 int ret;
39 if (ret == 0)
40 return 0;
41 else
42 return ret - 2;
43 return 0;
44}
45#endif
int strcmp(const char *String1, const char *String2)
Definition: utclib.c:469
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
#define _stricmp
Definition: cat.c:22
INT WINAPI CompareStringA(LCID lcid, DWORD flags, LPCSTR str1, INT len1, LPCSTR str2, INT len2)
Definition: lang.c:2695
struct S1 s1
struct S2 s2
#define strcoll
Definition: util.h:34
#define LOCALE_USER_DEFAULT
int _stricoll(const char *s1, const char *s2)
Definition: strcoll.c:29
int ret