X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b84d8f3a2a435ecad9b75900a9f31445fb71e187..e39c2471b6e2166d2e8a4cb515b4493936cf5203:/sbr/utils.c?ds=inline diff --git a/sbr/utils.c b/sbr/utils.c index 7c4ddcf2..cce73785 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -2,8 +2,6 @@ /* * utils.c -- various utility routines * - * $Id$ - * * This code is Copyright (c) 2006, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -124,6 +122,19 @@ add (char *s2, char *s1) return cp; } +/* + * addlist + * Append an item to a comma separated list + */ +char * +addlist (char *list, char *item) +{ + if (list) + list = add (", ", list); + + return add (item, list); +} + /* * folder_exists * Check to see if a folder exists.