X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmemcmp2.h;h=21552b2975d2864f0451cb8cf68698ec79909c40;hb=9e62d63e086644da90db03c16907e5c7bb5a42cb;hp=cbe6e8ce642c7b140c7be9a5ff568cacabe9591a;hpb=e6f2518067b058e204ed70679dcf1eaafd32325e;p=gnulib.git diff --git a/lib/memcmp2.h b/lib/memcmp2.h index cbe6e8ce6..21552b297 100644 --- a/lib/memcmp2.h +++ b/lib/memcmp2.h @@ -29,7 +29,8 @@ extern "C" { This function's result is locale independent, unlike memcoll()'s. Return a negative number if S1 < S2, a positive number if S1 > S2, or 0 if S1 and S2 have the same contents. */ -extern int memcmp2 (const char *s1, size_t n1, const char *s2, size_t n2); +extern int memcmp2 (const char *s1, size_t n1, const char *s2, size_t n2) + _GL_ATTRIBUTE_PURE; #ifdef __cplusplus