Mapper
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 
int is_good(int k, int smonth, int emonth)
Definition: is_good.c:4
int k
Definition: mapp2h.h:48