-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontactHelpers.h
executable file
·71 lines (52 loc) · 1.73 KB
/
contactHelpers.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* ------------------------------------------------------------------
Name:Badal Sarkar
Student number:<137226189>
Email:[email protected]
Section:Q
Date:December 01, 2018
---------------------------------------------------------------------
Assignment: 2
Milestone: 4
---------------------------------------------------------------------
Description: This header file modularizes general helper functions to
help reduce redundant coding for common repetitive tasks.
---------------------------------------------------------------------*/
//------------------------------------------------------
// Function Prototypes
//------------------------------------------------------
// Clear the standard input buffer
void clearKeyboard(void);
// pause:
void pause(void);
// getInt:
int getInt(void);
// getIntInRange:
int getIntInRange(int, int);
// yes:
int yes(void);
// menu:
int menu(void);
// contactManagerSystem:
void contactManagerSystem(void);
// Generic function to get a ten-digit phone number (provided for you)
void getTenDigitPhone(char[]);
// findContactIndex (provided for you)
int findContactIndex(const struct Contact[], int, const char[]);
// put function prototype here:
void displayContactHeader(void);
// displayContactFooter:
void displayContactFooter(int);
// displayContact:
void displayContact(const struct Contact*);
// displayContacts:
void displayContacts(const struct Contact[], int);
// searchContacts:
void searchContacts(const struct Contact[], int);
// addContact:
void addContact(struct Contact[], int);
// updateContact:
void updateContact(struct Contact[], int);
// deleteContact:
void deleteContact(struct Contact[], int);
// sortContacts:
void sortContacts(struct Contact[], int);