From c74dfa2faf6063f8648801f4528074ac770b779f Mon Sep 17 00:00:00 2001 From: Andre Oppermann 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/stdlib.h') diff --git a/include/stdlib.h b/include/stdlib.h index 8953409fac97..98fe8b7756c6 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.3