X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmemchr2.h;h=cc04889f122dded1df75ddea1e3e9d02469ba211;hb=ece81a73b64483a68f5157420836d84beb3a1680;hp=f5db8b79323267e0e6e1598d447ff3c2e5a27c17;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/lib/memchr2.h b/lib/memchr2.h index f5db8b793..cc04889f1 100644 --- a/lib/memchr2.h +++ b/lib/memchr2.h @@ -1,5 +1,5 @@ /* Scan memory for the first of two bytes. - Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2008-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,7 +24,8 @@ extern "C" { char) that occurs within N bytes of the memory region S. If neither byte appears, return NULL. */ -extern void *memchr2 (void const *s, int c1, int c2, size_t n); +extern void *memchr2 (void const *s, int c1, int c2, size_t n) + _GL_ATTRIBUTE_PURE; #ifdef __cplusplus }