X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmemchr2.h;h=3cce9f553a0f075aef9929b56fce27fdf2be52b4;hb=35ae1e147a8fe5c9003320f4a76edf8fb4dbf096;hp=d87615f4e5032754ed3419fae7a21cb6508b0c87;hpb=3030c5b5e0a5199e16b05927da72c43c42f211c3;p=gnulib.git diff --git a/lib/memchr2.h b/lib/memchr2.h index d87615f4e..3cce9f553 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 Free Software Foundation, Inc. + Copyright (C) 2008-2012 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 }