-
Notifications
You must be signed in to change notification settings - Fork 0
/
easyio.h
70 lines (55 loc) · 2.46 KB
/
easyio.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
/*----------------------------------------------------------------------*/
/* */
/* easyio.h */
/* */
/* This module contains the header for the functions exported by */
/* the easyio C++ package */
/* */
/*----------------------------------------------------------------------*/
#ifndef _EASYIOPLUS_H
#define _EASYIOPLUS_H
#define EASYIO_MAX_INT_LEN 9 /* max integer = (10E10 - 1) */
#define EASYIO_MAX_FLOAT_LEN 15
#define EASYIO_MAX_STR_LEN 80
#define EASYIO_MAX_BUF_LEN 80
#define EIO_MIN_INT -1000000000
#define EIO_MAX_INT 1000000000
#define EASYIO_OKAY 0
#define EASYIO_ERROR 1
#define EASYIO_DEFAULT 2
#define true 1
#define false 0
extern int scandigit (int *);
extern int scanint (int *);
extern int scanlong (long *);
extern int scandouble (double *);
extern int scanstring (char *);
extern void clear_screen();
extern void beep();
extern void pausa();
extern char readln ();
extern short read_bool(const char *, short);
extern short read_bool(const char *);
extern int read_digit(const char *, int, int, int);
extern int read_digit(const char *, int);
extern int read_digit(const char *);
extern int read_int(const char *, const char *, int, int, int);
extern int read_int(const char *, int, int, int);
extern int read_int(const char *, const char *, int);
extern int read_int(const char *, int);
extern int read_int(const char *);
extern long read_long(const char *, const char *, long, long, long);
extern long read_long(const char *, long, long, long);
extern long read_long(const char *, const char *, long);
extern long read_long(const char *, long);
extern long read_long(const char *);
extern double read_double(const char *, const char *, double, double, double);
extern double read_double(const char *, double, double, double);
extern double read_double(const char *, const char *, double);
extern double read_double(const char *, double);
extern double read_double(const char *);
extern const char * read_string(const char *, const char *);
extern const char * read_string(const char *);
extern bool read_bool(const char*, int, int, int);
extern bool read_bool(const char*, int);
#endif // _EASYIOPLUS_H