Explorar o código

add min() macro to complement max()

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@699 f882894a-f735-0410-b71e-b25c423dba1c
Karl DeBisschop %!s(int64=22) %!d(string=hai) anos
pai
achega
a2c0d2b629
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      plugins/utils.h

+ 1 - 0
plugins/utils.h

@@ -78,6 +78,7 @@ void usage3(const char *msg, int arg) __attribute__((noreturn));
 const char *state_text (int result);
 
 #define max(a,b) (((a)>(b))?(a):(b))
+#define min(a,b) (((a)<(b))?(a):(b))
 
 char *perfdata (const char *label,
  long int val,