Message-ID: <01BBC751.98F21160@slip00-73.btx.dtag.de> From: Daniel Jungbluth To: "'dokk'" Cc: "'DJGPP Mailing List'" Subject: RE: Borland library macro equivalent? Date: Thu, 31 Oct 1996 17:24:07 +-100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit >Hi all, > >Can someone help me out here? I'm converting a simple piece of code from >Borland C++ 4.0 compatible C source, and I need a DJGPP V2 equivalent of the >Borland library macros "min(a,b)" and "max(a,b)". I have absolutely no >experience of Borland, so any assistance here would really help me out. > >Many thanks in advance. > >Paul Simply define the following in your code: #define max(a,b) (((a) > (b)) ? (a) : (b)) #define min(a,b) (((a) < (b)) ? (a) : (b)) - Daniel Jungbluth contact me via email: danju AT t-online DOT de or check out my homepage: www.t-online.de/home/danju/ddc.htm semper fidelis