Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 exptools; site ihdev.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ihnp4!ihdev!rjv From: rjv@ihdev.UUCP (ron vaughn) Newsgroups: net.lang.c Subject: passing arrays by value Message-ID: <226@ihdev.UUCP> Date: Wed, 15-May-85 22:15:26 EDT Article-I.D.: ihdev.226 Posted: Wed May 15 22:15:26 1985 Date-Received: Thu, 16-May-85 22:23:43 EDT Distribution: net Organization: AT&T Bell Laboratories Lines: 12 *** EGASSEM RUOY HTIW ENIL SIHT ECALPER *** quick and simple: in c i wanted to pass an array by value. oops. hmmmm. ponder ponder. compiler says: an array IS a pointer. quick and dirty workaround -- shove the array in a struct (that does nothing but contain the array) and pass the struct around. worked fine. looked ugly. anyone have any better ideas?? am i missing something obvious here?? take my code, please. ron vaughn ...!ihnp4!ihdev!rjv