ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

strcoll.c
Go to the documentation of this file.
00001 /*
00002  * COPYRIGHT:   See COPYING in the top level directory
00003  * PROJECT:     ReactOS system libraries
00004  * FILE:        lib/crt/??????
00005  * PURPOSE:     Unknown
00006  * PROGRAMER:   Unknown
00007  * UPDATE HISTORY:
00008  *              25/11/05: Added license header
00009  */
00010 
00011 #include <precomp.h>
00012 
00013 /* Compare S1 and S2, returning less than, equal to or
00014    greater than zero if the collated form of S1 is lexicographically
00015    less than, equal to or greater than the collated form of S2.  */
00016 
00017 #if 1
00018 /*
00019  * @unimplemented
00020  */
00021 int strcoll(const char* s1, const char* s2)
00022 {
00023     return strcmp(s1, s2);
00024 }
00025 
00026 /*
00027  * @unimplemented
00028  */
00029 int _stricoll(const char* s1, const char* s2)
00030 {
00031     return _stricmp(s1, s2);
00032 }
00033 
00034 #else
00035 int strcoll (const char* s1,const char* s2)
00036 {
00037     int ret;
00038     ret = CompareStringA(LOCALE_USER_DEFAULT,0,s1,strlen(s1),s2,strlen(s2));
00039     if (ret == 0)
00040         return 0;
00041     else
00042         return ret - 2;
00043     return 0;
00044 }
00045 #endif

Generated on Thu May 24 2012 04:37:04 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.