/* Locale-specific memory comparison.
- Copyright (C) 1999, 2002-2004, 2006, 2009-2010 Free Software Foundation,
+ Copyright (C) 1999, 2002-2004, 2006, 2009-2013 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
nonzero sizes, and the last byte in each block must be a null byte.
Set errno to an error number if there is an error, and to zero
otherwise. */
-static inline int
+static int
strcoll_loop (char const *s1, size_t s1size, char const *s2, size_t s2size)
{
int diff;
return diff;
}
-/* Compare S1 (with size S1SIZE) and S2 (with length S2SIZE) according
- to the LC_COLLATE locale. S1 and S2 are both blocks of memory with
- nonzero sizes, and the last byte in each block must be a null byte.
+/* Compare S1 (a memory block of size S1SIZE, with a NUL as last byte)
+ and S2 (a memory block of size S2SIZE, with a NUL as last byte)
+ according to the LC_COLLATE locale. S1SIZE and S2SIZE must be > 0.
Set errno to an error number if there is an error, and to zero
otherwise. */
int