-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcore.h
More file actions
84 lines (62 loc) · 2.35 KB
/
core.h
File metadata and controls
84 lines (62 loc) · 2.35 KB
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
83
84
/*
*****************************************************************************
Assignment 1 - Milestone 3
Full Name : Hyunjin Shin
Student ID#: 168043214
Email : hshin41@myseneca.ca
Section : NAA
Authenticity Declaration:
I declare this submission is the result of my own work and has not been
shared with any other student or 3rd party content provider. This submitted
piece of work is entirely of my own creation.
*****************************************************************************
*/
// SAFE-GUARD:
// It is good practice to apply safe-guards to header files
// Safe-guard's ensures only 1 copy of the header file is used in the project build
// The macro name should be mirroring the file name with _ for spaces, dots, etc.
// !!! DO NOT DELETE THE BELOW 2 LINES !!!
#pragma once
#ifndef CORE_H
#define CORE_H
#define MAX_STRING 100
#define PHONE_LEN 10
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//
// Copy your work done from Milestone #2 (core.h) into this file
//
// NOTE:
// - Organize your functions into the below categories
// - Make sure the core.c file also lists these functions in the same order!
// - Be sure to provide a BRIEF comment for each function prototype
// - The comment should also be copied to the core.c function definition
//
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//////////////////////////////////////
// USER INTERFACE FUNCTIONS
//////////////////////////////////////
// Clear the standard input buffer
void clearInputBuffer(void);
// Wait for user to input the "enter" key to continue
void suspend(void);
//////////////////////////////////////
// USER INPUT FUNCTIONS
//////////////////////////////////////
// 1. inputInt
int inputInt(void);
// 2. inputIntPositive
int inputIntPositive(void);
// 3. inputIntRange
int inputIntRange(int min, int max);
// 4. inputCharOption
char inputCharOption(char* string);
// 5. inputCString
void inputCString(char* string, int min, int max);
// 6. displayFormattedPhone
void displayFormattedPhone(const char phoneNumber[]);
// 7. inputOneChar
char inputOneChar(char* string);
// 8.inputPhoneString
void inputPhoneString(char* string, int min, int max);
// !!! DO NOT DELETE THE BELOW LINE !!!
#endif // !CORE_H