Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Segfaults R Us Newsgroups: comp.lang.forth Subject: Re: C array descriptor Date: Wed, 25 Jun 2014 08:45:33 +0000 (UTC) Organization: solani.org Lines: 12 Message-ID: References: X-Trace: solani.org 1403685933 23427 eJwNy8EBwCAIA8CVkBhsxgEq+4/Q3v+IWNFnB2NzOCLp1aZbDWRBSQp260095vTFmwfjf7LRBxcOEM4= (25 Jun 2014 08:45:33 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Wed, 25 Jun 2014 08:45:33 +0000 (UTC) X-User-ID: eJwFwQUBADAIALBK+CEO2j/CN2VD6yemJnp64dX87kW1cEROrdOlUtg+Q0ceOoIdsmgYIBUE8LjKdNH9U28VQQ== Cancel-Lock: sha1:ug1PnAJ+AqnASBegnllXj9ALKdI= X-NNTP-Posting-Host: eJwNxEkBwDAIBEBLEAJh5XD6l9DOY1SMrd41taura5onPRJARc44eJkg0aHM/9MLLwj1odfxATEiEe8= Xref: csiph.com comp.lang.forth:31808 On 2014-06-25, Andrew Haley wrote: > Roger Levy wrote: > >> For the first time, I need to pass an array to an external function. >> Does anyone know the data structure for C array descriptors? > > C doesn't have array descriptors. An array, when passed to a > function, decays into a pointer to the first element. Can you say "segfault" boys and girls? ;-) > > Andrew.