diff options
author | Guillem Jover <guillem@hadrons.org> | 2009-10-11 21:07:53 +0200 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2009-10-24 01:11:23 +0200 |
commit | 56ddcfe65ac1526fe9c048c50f836cedd434dbac (patch) | |
tree | 1aa8ef1c0fc940ce4c6dbd66a1fb19f52bbf0be8 /include | |
parent | 1bf8b96ac8fd99a4764ef13f5234853a943f3140 (diff) | |
download | libbsd-56ddcfe65ac1526fe9c048c50f836cedd434dbac.tar.gz |
Add strtonum function
Taken from FreeBSD.
Diffstat (limited to 'include')
-rw-r--r-- | include/bsd/stdlib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bsd/stdlib.h b/include/bsd/stdlib.h index 75f994a..3e1fe83 100644 --- a/include/bsd/stdlib.h +++ b/include/bsd/stdlib.h @@ -47,6 +47,9 @@ int heapsort (void *, size_t, size_t, int (*)(const void *, const void *)); mode_t getmode(const void *set, mode_t mode); void *setmode(const char *mode_str); + +long long strtonum(const char *nptr, long long minval, long long maxval, + const char **errstr); __END_DECLS #endif |