Mapper
libraries
common
is_good.c
Go to the documentation of this file.
1
2
#include "
prototypes_new.h
"
3
4
int
is_good
(
int
k
,
int
smonth,
int
emonth)
5
6
{
7
8
if
(smonth <= emonth && k >= smonth &&
k
<= emonth)
9
return
(1);
10
11
if
(smonth > emonth) {
12
13
if
(
k
<= emonth)
14
return
(1);
15
16
if
(
k
>= smonth)
17
return
(1);
18
19
}
20
21
return
(-1);
22
23
}
24
is_good
int is_good(int k, int smonth, int emonth)
Definition:
is_good.c:4
k
int k
Definition:
mapp2h.h:48
prototypes_new.h
Generated by
1.9.1