blob: 659750a0175d689709394c85d4761425dc27c13c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef _BHLIST_H
#define _BHLIST_H
#include<stdio.h>
#include<stdbool.h>
#include<stdlib.h>
typedef struct bnode {
int data;
struct bnode * prior;
struct bnode * next;
} BNode;
typedef BNode * Blist;
void InitList (Blist * L);
bool AddElem (Blist * L, int e);
bool InsertElem (Blist * L, int e, int i);
bool DeleteElem (Blist * L, int e, int i);
void DestroyList (Blist * L);
void TraverseList (Blist * L);
#endif
|