X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmemcoll.c;h=23f6f79d9da77fdbc14d826826c8d6e82b2197b5;hb=76bcf6213d2a5a01dd56c0d1235bfdad4dd7ecf2;hp=39b383c742d9125b1cc94158ec6a0592ddc5d352;hpb=444cc405e1ad5afea49c9757be5a2c31c81804b6;p=gnulib.git diff --git a/lib/memcoll.c b/lib/memcoll.c index 39b383c74..23f6f79d9 100644 --- a/lib/memcoll.c +++ b/lib/memcoll.c @@ -1,6 +1,6 @@ /* Locale-specific memory comparison. - Copyright (C) 1999, 2002-2004, 2006, 2009-2010 Free Software Foundation, + Copyright (C) 1999, 2002-2004, 2006, 2009-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -93,9 +93,9 @@ memcoll (char *s1, size_t s1len, char *s2, size_t s2len) 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