-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddressbook.h
45 lines (37 loc) · 970 Bytes
/
addressbook.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
42
43
44
/*
* =====================================================================================
*
* Filename: addressbook.h
*
* Description:
*
* Version: 1.0
* Created: 2013年06月15日 13时07分14秒
* Revision: none
* Compiler: gcc
*
* Author: nonoDevil, linux.kakit@gmail.com
* Company: Xiyou Linux Group
*
* =====================================================================================
*/
#ifndef __ADDRESSBOOK_H_
#define __ADDRESSBOOK_H_
#define DEBUG
#define NAME_LEN 32
#define NUMBER_LEN 32
typedef struct contact_person{
char number[NUMBER_LEN];
char name[NAME_LEN];
struct contact_person *next;
}Node, *LinkList;
int welcome_menu(char *choice, LinkList head);
int init(LinkList *head);
int add(LinkList head);
int del(LinkList head);
int modify(LinkList head);
int query(LinkList head);
int load(LinkList head);
int save(LinkList head);
int list(LinkList head);
#endif