X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstrpbrk.c;h=c7ec33b229e2ff1f9e73a4cbf232a3369f8f0d6f;hb=5191b3546cfb6c163228c23f214e325ddf60d46f;hp=9152440b1e9d3826915898315523283cda9c5dfa;hpb=267a39bafd249d7eb9c37df06dc6defcf41cb343;p=gnulib.git diff --git a/lib/strpbrk.c b/lib/strpbrk.c index 9152440b1..c7ec33b22 100644 --- a/lib/strpbrk.c +++ b/lib/strpbrk.c @@ -1,4 +1,6 @@ -/* Copyright (C) 1991, 1994, 2000, 2002-2003 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1994, 2000, 2002-2003, 2006, 2009-2013 Free Software + Foundation, Inc. + NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. @@ -13,12 +15,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include @@ -33,8 +32,8 @@ strpbrk (const char *s, const char *accept) { const char *a = accept; while (*a != '\0') - if (*a++ == *s) - return (char *) s; + if (*a++ == *s) + return (char *) s; ++s; }