X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstrcspn.c;h=e4d780ef05d0b980a01e5a74c3b283d518fac718;hb=47cb657eca1abf2c26c32c8ce03def994a3ee37c;hp=2bbd906643b128c5cf69e1ef3d8e57a6278b4532;hpb=b51fcc0b038ac4d720d7d34ad98d78a14824e444;p=gnulib.git diff --git a/lib/strcspn.c b/lib/strcspn.c index 2bbd90664..e4d780ef0 100644 --- a/lib/strcspn.c +++ b/lib/strcspn.c @@ -1,11 +1,12 @@ -/* Copyright (C) 1991, 1994, 1996-1997, 2002 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1994, 1996-1997, 2002-2003, 2005-2006, 2009-2011 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@gnu.org. - This program is free software; you can redistribute it and/or modify it + 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 the - Free Software Foundation; either version 2, or (at your option) any + Free Software Foundation; either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, @@ -14,24 +15,12 @@ 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, - USA. */ + along with this program. If not, see . */ -#if HAVE_CONFIG_H -# include -#endif +#include #include - -#if defined _LIBC || HAVE_STRING_H -# include -#else -# include -# ifndef strchr -# define strchr index -# endif -#endif +#include #undef strcspn