-
Notifications
You must be signed in to change notification settings - Fork 0
/
contactHelpers.h
82 lines (61 loc) · 2.06 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
72
73
74
75
76
77
78
79
80
81
82
/* -------------------------------------------
Name: Eric Rabiner
Student number: 038806063
Email: erabiner@myseneca.ca
Section: L
Date: Tuesday, Nov. 13, 2018
----------------------------------------------
Assignment: 2
Milestone: 4
---------------------------------------------------------------------
Description: This header file modularizes general helper functions to
help reduce redundant coding for common repetitive tasks.
---------------------------------------------------------------------*/
// Hint: This header file now has functions with parameters referring to
// the struct Contact type so be sure to include the contacts.h header:
#include "contacts.h"
//------------------------------------------------------
// Function Prototypes
//------------------------------------------------------
// +-------------------------------------------------+
// | NOTE: Copy/Paste your Assignment-2 Milestone-3 |
// | function prototypes below... |
// +-------------------------------------------------+
// Clear the standard input buffer
// clearKeyboard:
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:
// getTenDigitPhone:
void getTenDigitPhone(char[]);
// findContactIndex (provided for you)
int findContactIndex(const struct Contact[], int, const char[]);
// displayContactHeader
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);