lib: add strtoul_or_err() function
Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
8e0ec3b48a
commit
e53bc9604c
2 changed files with 25 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
extern int strtosize(const char *str, uintmax_t *res);
|
||||
extern long strtol_or_err(const char *str, const char *errmesg);
|
||||
extern long long strtoll_or_err(const char *str, const char *errmesg);
|
||||
extern unsigned long strtoul_or_err(const char *str, const char *errmesg);
|
||||
|
||||
#ifndef HAVE_STRNLEN
|
||||
extern size_t strnlen(const char *s, size_t maxlen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue