summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKarel Zak2011-10-03 15:40:15 +0200
committerKarel Zak2011-10-03 15:40:15 +0200
commitffbe3270f10e1e808b03ec4b1844ea62b945652d (patch)
treedc63e6208b6de48d74a4e08f3cad7f759a9bc843 /include
parentlsblk: add udev support (diff)
parentcytune: fix printf type warning (diff)
downloadkernel-qcow2-util-linux-ffbe3270f10e1e808b03ec4b1844ea62b945652d.tar.gz
kernel-qcow2-util-linux-ffbe3270f10e1e808b03ec4b1844ea62b945652d.tar.xz
kernel-qcow2-util-linux-ffbe3270f10e1e808b03ec4b1844ea62b945652d.zip
Merge branch 'sys-utils-again' of https://github.com/kerolasa/lelux-utiliteetit
* 'sys-utils-again' of https://github.com/kerolasa/lelux-utiliteetit: cytune: fix printf type warning docs: mention long options in cytune.8 cytune: coding style fixes cytune: refactor main(), new function query_tty_stats() cytune: use libc error printing facilities cytune: check numeric user inputs cytune: add long options and usage() docs: restructure flock.1 manual page flock: simplify strtotimeval() lib: [strutils] add strtod_or_err() function flock: use strutils.h to check numeric user input flock: use sysexit.h for all exit values flock: use function attributes flock: align with howto-usage-function.txt flock: use libc error printing facilities flock: move long_options struct to function scope flock: fix coding style docs: align fallocate.1 with howto-man-page.txt
Diffstat (limited to 'include')
-rw-r--r--include/strutils.h1
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);