diff options
author | Davidlohr Bueso | 2011-10-12 05:18:12 +0200 |
---|---|---|
committer | Karel Zak | 2011-10-12 10:01:26 +0200 |
commit | a883c6349c21a0cab209e100d936340c50e087d2 (patch) | |
tree | 1833599f15263341faf0e614752d7c30b77ecd77 /include/strutils.h | |
parent | include/loopdev.h: add missing function prototype (diff) | |
download | kernel-qcow2-util-linux-a883c6349c21a0cab209e100d936340c50e087d2.tar.gz kernel-qcow2-util-linux-a883c6349c21a0cab209e100d936340c50e087d2.tar.xz kernel-qcow2-util-linux-a883c6349c21a0cab209e100d936340c50e087d2.zip |
lib,strutils: share parse_range()
This function is currently only being used by partx(8), but it's handy and
generic enough that we can use it elsewhere as well.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
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 dbcc3d904..28af8b503 100644 --- a/include/strutils.h +++ b/include/strutils.h @@ -45,4 +45,6 @@ extern int string_to_idarray(const char *list, int ary[], size_t arysz, extern int string_to_bitarray(const char *list, char *ary, int (*name2bit)(const char *, size_t)); +extern int parse_range(const char *str, int *lower, int *upper); + #endif |