-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathList.h
41 lines (34 loc) · 939 Bytes
/
List.h
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
/*
* =====================================================================================
*
* Filename: List.h
*
* Description:
*
* Version: 1.0
* Created: 11/29/2014 03:14:04 PM
* Revision: none
* Compiler: gcc
*
* Author: 张世龙 (mn), [email protected]
* Company: free
*
* =====================================================================================
*/
#ifndef GIT_JCOMMON_LIST_H
#define GIT_JCOMMON_LIST_H
typedef int ElemType;
typedef struct Node{
ElemType data;
struct Node *next;
}Node;
typedef struct Node *LinkList;
void InitList(LinkList *list);
int ListEmpty(LinkList list);
int ClearList(LinkList list);
int GetElem(LinkList list,int i,ElemType *e);
int LocateElem(LinkList list,ElemType *e);
int ListInsert(LinkList list,int i,ElemType *e);
int ListDelete(LinkList list,int i,ElemType *e);
int ListLength(LinkList list);
#endif