summaryrefslogtreecommitdiffstats
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2006-03-14 16:57:30 +0000
committerandre <andre@FreeBSD.org>2006-03-14 16:57:30 +0000
commit9ec6603878b44d4ee5c0205e99fa9788e8717b96 (patch)
treeda218425feae6ba491bf6dcbb51422c211cce3a1 /include/stdlib.h
parentaaa33da2edd23682521bc1bbbfa6ec1f33e6a9b6 (diff)
downloadFreeBSD-src-9ec6603878b44d4ee5c0205e99fa9788e8717b96.zip
FreeBSD-src-9ec6603878b44d4ee5c0205e99fa9788e8717b96.tar.gz
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
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h2
1 files changed, 2 insertions, 0 deletions
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
OpenPOWER on IntegriCloud