2 * ========================================================================
3 * Copyright 2013-2022 Eduardo Chappa
4 * Copyright 2006 University of Washington
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * ========================================================================
15 /*======================================================================
18 Implements STRINGLIST creation destruction routines
23 #include "../pith/headers.h"
24 #include "../pith/strlst.h"
30 STRINGLIST
*sl
= mail_newstringlist();
32 sl
->text
.data
= (unsigned char *) (*l
);
33 sl
->text
.size
= strlen(*l
);
34 sl
->next
= (*++l
) ? new_strlst(l
) : NULL
;
40 free_strlst(struct string_list
**sl
)
44 free_strlst(&(*sl
)->next
);
46 fs_give((void **) sl
);