From: Kevin Newsgroups: comp.os.msdos.djgpp Subject: Re: What is MID() macro ? Date: Fri, 01 Oct 1999 19:21:02 +0100 Message-ID: References: <000b8d9b DOT 421f3aed AT usw-ex0108-059 DOT remarq DOT com> NNTP-Posting-Host: reality-bytes.demon.co.uk X-NNTP-Posting-Host: reality-bytes.demon.co.uk:212.228.30.60 X-Trace: news.demon.co.uk 938802132 nnrp-04:22130 NO-IDENT reality-bytes.demon.co.uk:212.228.30.60 X-Complaints-To: abuse AT demon DOT net X-Newsreader: Forte Agent 1.6/32.525 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 16 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Thu, 30 Sep 1999 00:57:43 -0700, Clemens Valens wrote: >See allegro.h. There MID() is defined as follows: > >#define MID(x,y,z) MAX((x), MIN((y), (z))) > >Clemens I think I see now, it returns whichever of x, y or z is the middle value. Thanks, Kevin.