From: "Damian Yerrick" Newsgroups: comp.os.msdos.djgpp Subject: Re: What is MID() macro ? Date: Wed, 29 Sep 1999 20:08:21 -0500 Organization: Rose-Hulman Institute of Technology Lines: 20 Message-ID: <7sud9l$bdg$1@solomon.cs.rose-hulman.edu> References: NNTP-Posting-Host: 137.112.205.146 X-Trace: solomon.cs.rose-hulman.edu 938653813 11696 137.112.205.146 (30 Sep 1999 01:10:13 GMT) X-Complaints-To: news AT cs DOT rose-hulman DOT edu NNTP-Posting-Date: 30 Sep 1999 01:10:13 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Kevin wrote in message news:KoXyN35vg1q8HZF3EIU5c3sceTlu AT 4ax DOT com... > Hi all > > In the Allegro ex22.c program, a macro called MID is used thus > > col = MID(128, 255 - fixtoi(v1->z + v2->z) / 16, 255); > > I've not seen MID() before, what is it and where is it > declared/defined ?. Given that you said it's in Allegro, MID() may be in internal.h or allegro.h. It probably simply clips col to values between 128 and 255. Damian Yerrick http://come.to/yerrick