#ifndef MUTT_LIB_LIB_LIST_H
#define MUTT_LIB_LIB_LIST_H
+#include "str.h"
+
typedef struct list_t {
char *data;
struct list_t *next;
*list = item; \
} \
\
+ static inline type **prefix##_list_last(type **list) { \
+ while (*list) { \
+ list = &(*list)->next; \
+ } \
+ return list; \
+ } \
+ \
+ static inline type **prefix##_list_append(type **list, type *item) { \
+ list = prefix##_list_last(list); \
+ *list = item; \
+ return list; \
+ } \
+ \
static inline type **prefix##_list_init(type **list) { \
*list = NULL; \
return list; \