libite: Add strtonum() from OpenBSD

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2013-05-21 19:55:41 +02:00
1 parent cd63f8a73d
commit 499f4d45d3
3 files changed
+73 -1

No files matched your search

+4
View File
@@ -48,6 +48,10 @@ size_t strlcpy (char *dst, const char *src, size_t siz);
#ifndef strlcat
size_t strlcat (char *dst, const char *src, size_t siz);
#endif
#ifndef strtonum
long long strtonum (const char *numstr, long long minval, long long maxval, const char **errstrp);
#endif
static inline int fisslashdir(char *dir)
{
if (!dir) return 0;