From 9eb45f4f3c3f038abbd32890c9fa95a1ebb302cb Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Thu, 1 Feb 2018 11:37:15 +0100 Subject: fs/parseopt: Add parseopt_llu_suffix Add an option parser using strtoull_suffix that can be used to parse a loop mount offset option. Signed-off-by: Philipp Zabel Signed-off-by: Sascha Hauer --- include/parseopt.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/parseopt.h') diff --git a/include/parseopt.h b/include/parseopt.h index 1f9763f8c9..273a371ac3 100644 --- a/include/parseopt.h +++ b/include/parseopt.h @@ -1,5 +1,7 @@ #ifndef __PARSEOPT_H__ #define __PARSEOPT_H__ +void parseopt_llu_suffix(const char *options, const char *opt, + unsigned long long *val); void parseopt_b(const char *options, const char *opt, bool *val); void parseopt_hu(const char *options, const char *opt, unsigned short *val); -- cgit v1.2.3