interval.h
Go to the documentation of this file.
1 
9 #ifndef _INTERVAL_H_
10 #define _INTERVAL_H_
11 
17 typedef struct Interval {
19  int min;
21  int max;
22 } Interval;
23 
30 void addToInterval(Interval* inter, int x);
31 
41 
42 #endif // _INTERVAL_H_
struct Interval Interval
Structure that contains a signed integer interval.
void addToInterval(Interval *inter, int x)
Change the interval (if needed) to contain a new value.
Definition: interval.c:10
int isIntervalIncludeInAnother(Interval int1, Interval int2)
Is int1 include in int2?
Definition: interval.c:19
int max
The upper bound.
Definition: interval.h:21
Structure that contains a signed integer interval.
Definition: interval.h:17
int min
The lower bound.
Definition: interval.h:19