From e5cf14765502931f7a89c95feee712e27f9003cc Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 22 Feb 2015 14:41:37 +0000 Subject: lib/strutils: move parse_switch() from setterm(1) to library To allow sharing the code with other utilities. Signed-off-by: Sami Kerola Signed-off-by: Karel Zak --- include/strutils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/strutils.h') diff --git a/include/strutils.h b/include/strutils.h index 4d8463a6d..ee8c7cbda 100644 --- a/include/strutils.h +++ b/include/strutils.h @@ -36,6 +36,8 @@ extern void strtotimeval_or_err(const char *str, struct timeval *tv, extern int isdigit_string(const char *str); +extern int parse_switch(const char *arg, const char *a, const char *b); + #ifndef HAVE_MEMPCPY extern void *mempcpy(void *restrict dest, const void *restrict src, size_t n); #endif -- cgit v1.2.3-55-g7522