xref: /netbsd-src/external/gpl2/grep/dist/lib/xstrtoumax.c (revision a8fa202a6440953be7b92a8960a811bff58203f4)
1*a8fa202aSchristos /*	$NetBSD: xstrtoumax.c,v 1.1.1.1 2016/01/10 21:36:19 christos Exp $	*/
2*a8fa202aSchristos 
3*a8fa202aSchristos /* xstrtoumax.c -- A more useful interface to strtoumax.
4*a8fa202aSchristos    Copyright 1999 Free Software Foundation, Inc.
5*a8fa202aSchristos 
6*a8fa202aSchristos    This program is free software; you can redistribute it and/or modify
7*a8fa202aSchristos    it under the terms of the GNU General Public License as published by
8*a8fa202aSchristos    the Free Software Foundation; either version 2, or (at your option)
9*a8fa202aSchristos    any later version.
10*a8fa202aSchristos 
11*a8fa202aSchristos    This program is distributed in the hope that it will be useful,
12*a8fa202aSchristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
13*a8fa202aSchristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*a8fa202aSchristos    GNU General Public License for more details.
15*a8fa202aSchristos 
16*a8fa202aSchristos    You should have received a copy of the GNU General Public License
17*a8fa202aSchristos    along with this program; if not, write to the Free Software Foundation,
18*a8fa202aSchristos    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
19*a8fa202aSchristos 
20*a8fa202aSchristos /* Written by Paul Eggert. */
21*a8fa202aSchristos 
22*a8fa202aSchristos #if HAVE_CONFIG_H
23*a8fa202aSchristos # include <config.h>
24*a8fa202aSchristos #endif
25*a8fa202aSchristos 
26*a8fa202aSchristos #if HAVE_INTTYPES_H
27*a8fa202aSchristos # include <inttypes.h>
28*a8fa202aSchristos #endif
29*a8fa202aSchristos 
30*a8fa202aSchristos #define __strtol strtoumax
31*a8fa202aSchristos #define __strtol_t uintmax_t
32*a8fa202aSchristos #define __xstrtol xstrtoumax
33*a8fa202aSchristos #include "xstrtol.c"
34