X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Fstring.c;h=3abe2a3bdbd07de686ee2968f194ece565a1e296;hb=c59b09dc16145178a29850e7bda7d6bc6dedbc58;hp=29a87c57233f832f20be1264420bb79abc3fec46;hpb=617d39327e65b7fccc41a12b4a5e2940d6327c9f;p=exim.git diff --git a/src/src/string.c b/src/src/string.c index 29a87c572..3abe2a3bd 100644 --- a/src/src/string.c +++ b/src/src/string.c @@ -1051,6 +1051,24 @@ return list; +/* A slightly-bogus listmaker utility; the separator is a string so +can be multiple chars - there is no checking for the element content +containing any of the separator. */ + +gstring * +string_append2_listele_n(gstring * list, const uschar * sepstr, + const uschar * ele, unsigned len) +{ +if (list && list->ptr) + list = string_cat(list, sepstr); + +list = string_catn(list, ele, len); +(void) string_from_gstring(list); +return list; +} + + + /************************************************/ /* Create a growable-string with some preassigned space */