X-Git-Url: https://vcs.fsf.org/?p=exim.git;a=blobdiff_plain;f=src%2Fsrc%2Fstring.c;h=5a8d0e76312950d819594374f3a439f3c39aa364;hp=29a87c57233f832f20be1264420bb79abc3fec46;hb=bce15b62182d356f86e7a0bdbb513cbb22de1a20;hpb=c8599aad9649a7970e77fdf24f29ade0fcb987a7 diff --git a/src/src/string.c b/src/src/string.c index 29a87c572..5a8d0e763 100644 --- a/src/src/string.c +++ b/src/src/string.c @@ -1051,6 +1051,26 @@ 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) +{ +const uschar * sp; + +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 */