OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
minmax.h
Go to the documentation of this file.
1 /* Copyright (C) 2004 Marc Rehmsmeier, Peter Steffen, Matthias Hoechsmann */
2 
3 /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */
4 
5 /* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. */
6 
7 /* You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
8 
9 #ifndef minmax_h
10 #define minmax_h
11 
12 #define min(A, B) ((A) < (B) ? (A) : (B))
13 #define max(A, B) ((A) > (B) ? (A) : (B))
14 
15 #endif