2
* Copyright (C) 2002,2003,2004 Mattia Dongili<dongili@supereva.it>
3
* George Staikos <staikos@0wned.org>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
#ifndef __STRINGLIST_H
23
#define __STRINGLIST_H
29
struct string_node *first;
30
struct string_node *last;
37
struct string_node *next;
38
struct string_node *prev;
42
* Frees all the elements of the list.
43
* Returns the number of freed elements.
46
int string_list_free_sublist(struct string_list *list, struct string_node *start);
49
* Initializes a new string_list and
50
* returns a reference to it
53
struct string_list *string_list_new(void);
56
* Initializes a new string_node and
57
* returns a reference to it
60
struct string_node *string_node_new(void);
63
* Appends a node to the list
66
void string_list_append(struct string_list *list, struct string_node *node);