findutils-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Findutils-patches] [PATCH] Delete unused file lib/strspn.c


From: James Youngman
Subject: [Findutils-patches] [PATCH] Delete unused file lib/strspn.c
Date: Mon, 5 Apr 2010 11:54:59 +0100

Signed-off-by: James Youngman <address@hidden>
---
 ChangeLog    |    4 ++++
 lib/strspn.c |   41 -----------------------------------------
 2 files changed, 4 insertions(+), 41 deletions(-)
 delete mode 100644 lib/strspn.c

diff --git a/ChangeLog b/ChangeLog
index 709235a..a0051da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-05  James Youngman  <address@hidden>
+
+       * lib/strspn.c: Delete this unused file.
+
 2010-04-04  James Youngman  <address@hidden>
 
        Fix Savannah bug #29435: fd_is_cloexec does not work on Fedora
diff --git a/lib/strspn.c b/lib/strspn.c
deleted file mode 100644
index 69a630e..0000000
--- a/lib/strspn.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/* strspn.c -- return numbers of chars at start of string in a class
-   Copyright (C) 1987, 1990, 2004, 2010 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
-   the Free Software Foundation, either version 3 of the License, 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/>.
-*/
-
-#include <config.h>
-
-
-#if defined HAVE_STRING_H
-#include <string.h>
-#else
-#include <strings.h>
-#ifndef strchr
-#define strchr index
-#endif
-#endif
-
-#if !defined(HAVE_STRSPN)
-int
-strspn (str, class)
-     char *str, *class;
-{
-  register char *st = str;
-
-  while (*st && strchr (class, *st))
-    ++st;
-  return st - str;
-}
-#endif
-- 
1.7.0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]