view List.h @ 0:5b089096921f

first commit.
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Fri, 18 Dec 2009 21:57:05 +0900
parents
children 803d6bf22e6d
line wrap: on
line source

#ifndef _LIST_H
#define _LIST_H

typedef struct _List {
	void *data;
	struct _List *next;
	struct _List *prev;
} List;

List * _listAddFirst(List*, void *);
List * _listRemove(List *, void *);
void * _listGetnthData(List *, int);

typedef int (*ApplyFn)(void*,void*);
void _listApply(List *, ApplyFn, void *);

#endif /* !_LIST_H */