diff options
author | Milan Broz | 2012-07-26 15:52:04 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-26 16:26:27 +0200 |
commit | f5077b5180c58dec734d1c1a8d19c8632496a864 (patch) | |
tree | 61c20935f6241e59cd255cd6dec59a5b8270c2cd /include/strutils.h | |
parent | dmesg: improve err handling code (diff) | |
download | kernel-qcow2-util-linux-f5077b5180c58dec734d1c1a8d19c8632496a864.tar.gz kernel-qcow2-util-linux-f5077b5180c58dec734d1c1a8d19c8632496a864.tar.xz kernel-qcow2-util-linux-f5077b5180c58dec734d1c1a8d19c8632496a864.zip |
lib/strutils: add string_add_to_idarray() - parse and add to id list
Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/strutils.h')
-rw-r--r-- | include/strutils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/strutils.h b/include/strutils.h index 57b13fddc..123907fc9 100644 --- a/include/strutils.h +++ b/include/strutils.h @@ -59,6 +59,10 @@ extern char *size_to_human_string(int options, uint64_t bytes); extern int string_to_idarray(const char *list, int ary[], size_t arysz, int (name2id)(const char *, size_t)); +extern int string_add_to_idarray(const char *list, int ary[], + size_t arysz, int *ary_pos, + int (name2id)(const char *, size_t)); + extern int string_to_bitarray(const char *list, char *ary, int (*name2bit)(const char *, size_t)); |