Mail Archives: djgpp/1996/10/31/12:04:50
>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 -