2 * Copyright (C) 1993-2001 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
6 * $Id: ratoi.c,v 1.4 2001/06/09 17:09:25 darrenr Exp $
12 int ratoi(ps, pi, min, max)
19 i = (int)strtol(ps, &pe, 0);
20 if (*pe != '\0' || i < min || i > max)