-
Notifications
You must be signed in to change notification settings - Fork 0
/
apc.h
32 lines (21 loc) · 887 Bytes
/
apc.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
#ifndef APC_H
#define APC_H
#define SUCCESS 0
#define FAILURE -1
typedef int data_t;
typedef struct node
{
struct node *prev;
data_t data;
struct node *next;
}Dlist;
/* Include the prototypes here */
int addition(Dlist **head1, Dlist **tail1, Dlist **head2, Dlist **tail2, Dlist **headR, Dlist **tailR);
int subtraction(Dlist **head1, Dlist **tail1, Dlist **head2, Dlist **tail2, Dlist **headR,Dlist **tailR);
int multiplication(Dlist **head1, Dlist **tail1, Dlist **head2, Dlist **tail2, Dlist **headR, Dlist **tailR,Dlist **headR2,Dlist **tailR2,char *argv[]);
int division(Dlist **head1, Dlist **tail1, Dlist **head2, Dlist **tail2, Dlist **headR,Dlist **tailR, char *argv[]);
int dl_insert_first(Dlist **head, Dlist **tail, int data);
int dl_delete_first(Dlist **head, Dlist **tail);
int dl_delete_list(Dlist **head, Dlist **tail);
void print_list(Dlist *head);
#endif