summaryrefslogtreecommitdiff
path: root/lib/strspn.c
diff options
context:
space:
mode:
authorKevin Dalley <kevin@seti.org>1996-02-04 20:35:04 +0000
committerKevin Dalley <kevin@seti.org>1996-02-04 20:35:04 +0000
commitda4093813c9d227e0a1378ce362c4c291263dc93 (patch)
tree4b29e114a804b92d85c81eca4c785b84eaa2147f /lib/strspn.c
parentf2d3ffa59ed8c17c0fd8f70094385c1d0e054a63 (diff)
downloadfindutils-FINDUTILS.tar.gz
GNU findutils package version 4.1FINDUTILS-4_1FINDUTILS
Diffstat (limited to 'lib/strspn.c')
-rw-r--r--lib/strspn.c23
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