Changeset 45256 in vbox for trunk/src/VBox
- Timestamp:
- Mar 30, 2013 8:30:10 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/RTStrNCmp.cpp
r44528 r45256 5 5 6 6 /* 7 * Copyright (C) 2006-201 0Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 42 42 return 1; 43 43 44 #ifdef RT_OS_SOLARIS 45 /* Solaris: tstUtf8 found to fail for some RTSTR_MAX on testboxsh1: 46 solaris.amd64 v5.10 (Generic_142901-12 (Assembled 30 March 2009)). */ 47 while (cchMax-- > 0) 48 { 49 char ch1 = *psz1++; 50 char ch2 = *psz2++; 51 if (ch1 != ch2) 52 return ch1 > ch2 ? 1 : -1; 53 else if (ch1 == 0) 54 break; 55 } 56 return 0; 57 #else 44 58 return strncmp(psz1, psz2, cchMax); 59 #endif 45 60 } 46 61 RT_EXPORT_SYMBOL(RTStrNCmp);
Note:
See TracChangeset
for help on using the changeset viewer.