exit str_cmp enters m_strcmp
[apps/madmutt.git] / list.h
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
4  *
5  * This file is part of mutt-ng, see http://www.muttng.org/.
6  * It's licensed under the GNU General Public License,
7  * please see the file GPL in the top level source directory.
8  */
9 #ifndef _MUTT_LIST_H
10 #define _MUTT_LIST_H
11
12 typedef struct list_t {
13     char *data;
14       struct list_t *next;
15 } LIST;
16
17 #define mutt_new_list() p_new(LIST, 1)
18 void mutt_free_list (LIST **);
19
20 LIST *mutt_copy_list (LIST *);
21
22 /* add an element to a list */
23 LIST *mutt_add_list (LIST*, const char*);
24 LIST *mutt_add_list_n (LIST*, const void*, size_t len);
25
26 #endif /* !_MUTT_LIST_H */