X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: huli_ebtyt AT list DOT ru (Andrey) Newsgroups: comp.os.msdos.djgpp Subject: Re: array size inside of a function Date: 3 Mar 2004 21:16:35 -0800 Organization: http://groups.google.com Lines: 12 Message-ID: References: NNTP-Posting-Host: 212.220.74.133 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1078377396 15639 127.0.0.1 (4 Mar 2004 05:16:36 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 4 Mar 2004 05:16:36 +0000 (UTC) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > sizeof(char **) == address size = 4 on 32bit machines. > so in main(), array name is not a pointer? > They simpliest way to get around this is the following: > > function(char *array[], size_t num_elements); > and there no way free from passing size?