home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.disi.unige.it
/
2015-02-11.ftp.disi.unige.it.tar
/
ftp.disi.unige.it
/
pub
/
.person
/
CataniaB
/
teach-act
/
esempi
/
Comp-Sep
/
list.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-04-19
|
461b
|
20 lines
#define ERROR -1
typedef int bool;
typedef int element; /* assumiamo che siano solo > 0 */
typedef struct cell * list;
struct cell { element x,y; list next; };
typedef struct { list head, tail; } dlist;
void init(dlist *);
bool is_empty(dlist *);
void first(element *,element *,dlist *);
void insert_head(element,element, dlist *);
void insert_tail(element,element, dlist *);
void delete_head(dlist *);
void print(dlist *);