Source restructure. yaz-marcdump part of installation
[yaz-moved-to-github.git] / util / atoin.c
diff --git a/util/atoin.c b/util/atoin.c
deleted file mode 100644 (file)
index 57f9561..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (c) 1997-2003, Index Data
- * See the file LICENSE for details.
- *
- * $Id: atoin.c,v 1.6 2003-01-06 08:20:28 adam Exp $
- */
-
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <string.h>
-#include <ctype.h>
-#include <yaz/yaz-util.h>
-
-int atoi_n (const char *buf, int len)
-{
-    int val = 0;
-
-    while (--len >= 0)
-    {
-        if (isdigit (*buf))
-            val = val*10 + (*buf - '0');
-       buf++;
-    }
-    return val;
-}
-