delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/31/12:04:50

Message-ID: <01BBC751.98F21160@slip00-73.btx.dtag.de>
From: Daniel Jungbluth <danju AT t-online DOT de>
To: "'dokk'" <dokk AT top DOT monad DOT net>
Cc: "'DJGPP Mailing List'" <djgpp AT delorie DOT com>
Subject: RE: Borland library macro equivalent?
Date: Thu, 31 Oct 1996 17:24:07 +-100
MIME-Version: 1.0

>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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019