File: list.h

package info (click to toggle)
epic5 3.0.3-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 5,328 kB
  • sloc: ansic: 75,810; makefile: 648; ruby: 227; python: 215; sh: 78; perl: 13
file content (26 lines) | stat: -rw-r--r-- 603 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * list.h: header for list.c 
 *
 * Copyright 1990 Michael Sandrof
 * Copyright 1997 EPIC Software Labs
 * See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT 
 */

#ifndef __list_h__
#define __list_h__

/* Your type must be congruent to this type */
typedef	struct	list_stru
{
struct	list_stru *	next;
	char *		name;
	void *		d;
}	List;

void	add_item_to_list 	(List **, List *);
void	add_to_list 		(List **, const char *, void *);
List *	find_in_list 		(List *, const char *);
List *	remove_from_list 	(List **, const char *);
List *	remove_item_from_list	(List **, List *);

#endif /* _LIST_H */