Mercurial > hg > th-libs
comparison th_string.c @ 707:57d30f49fe1e
Return the correct return value from th_join_string_elems().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 27 Apr 2020 00:43:20 +0300 |
parents | d289fae3c1a8 |
children | ec6a3790a91b |
comparison
equal
deleted
inserted
replaced
706:d289fae3c1a8 | 707:57d30f49fe1e |
---|---|
696 | 696 |
697 (*str)[offs] = 0; | 697 (*str)[offs] = 0; |
698 | 698 |
699 out: | 699 out: |
700 th_free(elemlens); | 700 th_free(elemlens); |
701 return THERR_OK; | 701 return res; |
702 } | 702 } |
703 | 703 |
704 | 704 |
705 int th_join_string(th_char_t **str, th_char_t **elems, const size_t nelems, const th_char_t *sep) | 705 int th_join_string(th_char_t **str, th_char_t **elems, const size_t nelems, const th_char_t *sep) |
706 { | 706 { |