diff options
Diffstat (limited to 'lib/strspn.c')
-rw-r--r-- | lib/strspn.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/lib/strspn.c b/lib/strspn.c index 53f3a1fd..01d8d0fc 100644 --- a/lib/strspn.c +++ b/lib/strspn.c @@ -1,24 +1,25 @@ /* strspn.c -- return numbers of chars at start of string in a class - Copyright (C) 1987, 1990, 2004 Free Software Foundation, Inc. + Copyright (C) 1987, 1990 Free Software Foundation, Inc. - This program is free software: you can redistribute it and/or modify + 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 3 of the License, or - (at your option) any later version. - + the Free Software Foundation; either version 2, or (at your option) + any later version. + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 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, see <http://www.gnu.org/licenses/>. -*/ + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifdef HAVE_CONFIG_H #include <config.h> +#endif - -#if defined HAVE_STRING_H +#if defined(HAVE_STRING_H) #include <string.h> #else #include <strings.h> @@ -27,7 +28,6 @@ #endif #endif -#if !defined(HAVE_STRSPN) int strspn (str, class) char *str, *class; @@ -38,4 +38,3 @@ strspn (str, class) ++st; return st - str; } -#endif |