summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-04-19 10:36:28 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-04-30 20:22:23 +0800
commitf152f6a7701b943cfa67c6bfb42a22086861daa3 (patch)
tree6159e17f9b823c9db7de2fa7b8950af14eabb57f /include
parent34faa2e7ca95f8f7f4a235bb5b25fd604612f140 (diff)
downloadbarebox-f152f6a7701b943cfa67c6bfb42a22086861daa3.tar.gz
barebox-f152f6a7701b943cfa67c6bfb42a22086861daa3.tar.xz
stringlist: implement string_list_add_asprintf
Useful for allocating a string list entry on the fly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'include')
-rw-r--r--include/stringlist.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stringlist.h b/include/stringlist.h
index 4b3cbf311..dd3f62361 100644
--- a/include/stringlist.h
+++ b/include/stringlist.h
@@ -9,6 +9,7 @@ struct string_list {
};
int string_list_add(struct string_list *sl, char *str);
+int string_list_add_asprintf(struct string_list *sl, const char *fmt, ...);
int string_list_add_sorted(struct string_list *sl, char *str);
int string_list_contains(struct string_list *sl, char *str);
void string_list_print_by_column(struct string_list *sl);