diff options
author | Sami Kerola | 2011-09-25 11:03:07 +0200 |
---|---|---|
committer | Sami Kerola | 2011-09-29 22:45:27 +0200 |
commit | a9f97001c3fc420d1433d253539800cbb4864003 (patch) | |
tree | f45e30be413e06b1b7d9c48a7f65813442d6e9e1 /include/strutils.h | |
parent | flock: use strutils.h to check numeric user input (diff) | |
download | kernel-qcow2-util-linux-a9f97001c3fc420d1433d253539800cbb4864003.tar.gz kernel-qcow2-util-linux-a9f97001c3fc420d1433d253539800cbb4864003.tar.xz kernel-qcow2-util-linux-a9f97001c3fc420d1433d253539800cbb4864003.zip |
lib: [strutils] add strtod_or_err() function
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'include/strutils.h')
-rw-r--r-- | include/strutils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/strutils.h b/include/strutils.h index 08ba09c01..dbcc3d904 100644 --- a/include/strutils.h +++ b/include/strutils.h @@ -6,6 +6,7 @@ #include <sys/types.h> extern int strtosize(const char *str, uintmax_t *res); +extern double strtod_or_err(const char *str, const char *errmesg); 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); |