-
Notifications
You must be signed in to change notification settings - Fork 3
/
cs210sil.h
executable file
·37 lines (32 loc) · 1.03 KB
/
cs210sil.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
/* cs210sil.h
* =============================================================
* Name:
* Section:
* Purpose: Creating a safe input library
* =============================================================
*/
/** ----------------------------------------------
* @brief safely read one integer from stdin
* @return the integer value read (if successful)
*/
int getIntegerSafe();
/** ----------------------------------------------
* @brief safely read one long from stdin
* @return the long value read (if successful)
*/
long getLongSafe();
/** ----------------------------------------------
* @brief safely read one float from stdin
* @return the float value read (if successful)
*/
float getFloatSafe();
/** ----------------------------------------------
* @brief safely read one double from stdin
* @return the double value read (if successful)
*/
double getDoubleSafe();
/** ----------------------------------------------
* @brief safely read one char from stdin
* @return the char value read (if successful)
*/
char getCharSafe();