From 9ec6603878b44d4ee5c0205e99fa9788e8717b96 Mon Sep 17 00:00:00 2001 From: andre Date: Tue, 14 Mar 2006 16:57:30 +0000 Subject: Import of OpenBSD's strtonum(3) which is a nicer version of strtoll(3) providing proper error checking and other improvements. Obtained from: OpenBSD Requested by: flz (to port Open[BGP|OSPF]D) MFC after: 3 days --- include/stdlib.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/stdlib.h b/include/stdlib.h index 8953409..98fe8b7 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -271,6 +271,8 @@ int sradixsort(const unsigned char **, int, const unsigned char *, unsigned); void sranddev(void); void srandomdev(void); +long long + strtonum(const char *, long long, long long, const char **); /* Deprecated interfaces, to be removed in FreeBSD 6.0. */ __int64_t -- cgit v1.1