-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinkList.h
More file actions
43 lines (33 loc) · 891 Bytes
/
Copy pathlinkList.h
File metadata and controls
43 lines (33 loc) · 891 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: linkList.h
* Author: captain
*
* Created on 2018年8月19日, 下午9:28
*/
#ifndef LINKLIST_H
#define LINKLIST_H
#ifdef __cplusplus
extern "C" {
#endif
#include "main.h"
struct singleLink{
elementType val;
struct singleLink * next;
};
typedef struct singleLink * psList;
typedef struct singleLink * Position;
bool isSingleLinkEmpty(psList L);
bool isSingleLinkLast(psList L, Position P);
Position singleListFind(psList L, elementType ele);
Position singleListFindPrevious(psList L, elementType ele);
bool singleLinkInsert(psList L, Position P, elementType ele);
bool singleLinkRemove(psList L, elementType ele);
#ifdef __cplusplus
}
#endif
#endif /* LINKLIST_H */