-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathList.h
More file actions
52 lines (40 loc) · 742 Bytes
/
List.h
File metadata and controls
52 lines (40 loc) · 742 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
43
44
45
46
47
48
49
50
51
52
/*
* List.h
*
* Created: 2017/7/28 下午 1:19:41
* Author: schummacher
*/
#ifndef LIST_H_
#define LIST_H_
#include <stdint-gcc.h>
#include <stdlib.h>
#include <stdbool.h>
struct _list_i
{
int dat;
struct _list_i *next;
struct _list_i *front;
};
typedef struct _list_i list_i;
struct _list
{
list_i *first;
list_i *last;
int length;
};
typedef struct _list list;
void push(int dat, list *L);
int pop(list *L);
void creat(int dat, list *L);
void append(int dat, list *L);
int out(list *L);
void clear(list *L);
// void insert(int dat, int times, list *L, int count);
list *combian(list *A, list *B);
//void sort(list *L);
int find(int count, list *L, int face);
//TODO
//insert
//remove
//sort
#endif /* LIST_H_ */