Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!mit-eddie!bu.edu!mirror!rayssd!jarsun1!drd!tdh From: tdh@DRD.Com (Tom Haynes) Newsgroups: comp.lang.c Subject: Re: Passing Multi-dimensional arrays to a function Message-ID: <1990Jul19.112403.709@DRD.Com> Date: 19 Jul 90 11:24:03 GMT References: <1990Jul17.224910.20086@DRD.Com> <9905@crdgw1.crd.ge.com> Reply-To: tdh@drd.Com (Tom Haynes) Distribution: na Organization: DRD Corporation, Tulsa, OK Lines: 37 volpe@underdog.crd.ge.com (Christopher R Volpe) wrote: } > cischa(pnlptr, "PREFIX", 0, SCREEN, prefix[curr]); } * ^^^^^^^^^^^^ } * prefix[curr] is of type (char *) whereas the formal parameter } * is of type (char **). Maybe you wanted "&prefix[curr]"??? } * I tried that, along with &prefix[curr][0], both were no go. Error message was something like '& not allowed on struct/array'. } > ared2bf9EDIT, curr, buf, free, list); } } > ardrvr.c(63) : warning C4047: 'arguement' : different levels } > of indirection } * } *You haven't shown the reference to 'arguement' } * Arguement refers to, in this case _arguement_ 3, or buf. Sorry if I thought the way MSC reported errors was the only way. } * } *Beats me, buf is of type (char ***), and that's what the formal parameter } *wants. } * } } Chris Volpe } G.E. Corporate R&D } volpecr@crd.ge.com I agree, but since it doesn't compile, it suggests that I don't have a good grasp if the situation. Oh well, back to _C for the Living Dead_, available in all your local occult stores. Thanks, and whenever, Tom Haynes