/* * I can't believe that this really doesn't exist in a standard library! */ #define min(a, b) ((a) > (b) ? (b) : (a)) #define max(a, b) ((a) > (b) ? (a) : (b))