return a < b ? b : a;
}
+/*
+ * Define generic MIN and MAX macros.
+ */
+#ifndef MIN
+#define MIN(A,B) (((A) < (B)) ? (A) : (B))
+#endif
+#ifndef MAX
+#define MAX(A,B) (((A) > (B)) ? (A) : (B))
+#endif
+
/*
* Define some macros for packing and unpacking bytes to and from larger ints.
* Trim white space off of both sides of a string.
*/
INLINE_MAYBE
-void trim(char *str)
+char* trim(char *str)
{
rtrim(str);
ltrim(str);
+ return str;
}