Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site dg_rtp.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!mcnc!rti-sel!dg_rtp!throopw From: throopw@dg_rtp.UUCP (Wayne Throop) Newsgroups: net.lang.c Subject: Re: dynamic array parameters Message-ID: <61@dg_rtp.UUCP> Date: Thu, 26-Dec-85 14:47:51 EST Article-I.D.: dg_rtp.61 Posted: Thu Dec 26 14:47:51 1985 Date-Received: Sat, 28-Dec-85 01:34:04 EST References: <977@brl-tgr.ARPA> <57@dg_rtp.UUCP> Lines: 14 A small PS. Naturally, the macro > #define index(a,i,j) (*(a + i*d1 + j)) really needs extra parenthesization, like so: #define index(a,i,j) (*((a) + (i)*d1 + (j))) or, (using subscripts) like so: #define index(a,i,j) ((a)[(i)*d1 + (j)]) -- Wayne Throop at Data General, RTP, NC !mcnc!rti-sel!dg_rtp!throopw