diff options
Diffstat (limited to 'src/cklist.c')
-rw-r--r-- | src/cklist.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cklist.c b/src/cklist.c index e1ca7d8..14d5d82 100644 --- a/src/cklist.c +++ b/src/cklist.c @@ -175,6 +175,17 @@ void list_print(cklist *ckl) { } } +void list_print_concat(cklist *ckl) { + if (ckl->size > 0) { + list_rewind(ckl); + printf("%s", list_get(ckl)); + while (list_next(ckl)) { + printf("%s", list_get(ckl)); + } + list_rewind(ckl); + } +} + int list_size(cklist *ckl) { return ckl->size; } |