summaryrefslogtreecommitdiff
path: root/lib/ratoi.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2013-08-11 14:28:45 +0000
committerCy Schubert <cy@FreeBSD.org>2013-08-11 14:28:45 +0000
commit05ddbb8d93073fe6263bb3fff26e1c4c8651352e (patch)
tree1edb84380ee8d48a5e93a53f33d1b6373e330d5e /lib/ratoi.c
parentc63520fcdd8c7ba7a737717520fa3896db69342f (diff)
Notes
Diffstat (limited to 'lib/ratoi.c')
-rw-r--r--lib/ratoi.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/ratoi.c b/lib/ratoi.c
deleted file mode 100644
index fb8552dfcc156..0000000000000
--- a/lib/ratoi.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (C) 1993-2001 by Darren Reed.
- *
- * See the IPFILTER.LICENCE file for details on licencing.
- *
- * $Id: ratoi.c,v 1.4 2001/06/09 17:09:25 darrenr Exp $
- */
-
-#include "ipf.h"
-
-
-int ratoi(ps, pi, min, max)
-char *ps;
-int *pi, min, max;
-{
- int i;
- char *pe;
-
- i = (int)strtol(ps, &pe, 0);
- if (*pe != '\0' || i < min || i > max)
- return 0;
- *pi = i;
- return 1;
-}