diff options
author | Sami Kerola | 2015-02-22 15:41:37 +0100 |
---|---|---|
committer | Karel Zak | 2015-02-24 11:33:31 +0100 |
commit | e5cf14765502931f7a89c95feee712e27f9003cc (patch) | |
tree | b1ac1fddeb5091b5d6790ca4f09c9ad23812df97 /include/strutils.h | |
parent | tunelp: remove unnecessary preprocessor directives (diff) | |
download | kernel-qcow2-util-linux-e5cf14765502931f7a89c95feee712e27f9003cc.tar.gz kernel-qcow2-util-linux-e5cf14765502931f7a89c95feee712e27f9003cc.tar.xz kernel-qcow2-util-linux-e5cf14765502931f7a89c95feee712e27f9003cc.zip |
lib/strutils: move parse_switch() from setterm(1) to library
To allow sharing the code with other utilities.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/strutils.h')
-rw-r--r-- | include/strutils.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |