GRASS Programmer's Manual  6.4.2(2012)
between.c
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 1995.  Bill Brown <brown@gis.uiuc.edu> & Michael Shapiro
00003  *
00004  * This program is free software under the GPL (>=v2)
00005  * Read the file GPL.TXT coming with GRASS for details.
00006  */
00007 
00008 int datetime_is_between(int x, int a, int b)
00009 {
00010     if (a <= b)
00011         return a <= x && x <= b;
00012     else
00013         return b <= x && x <= a;
00014 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines