www.delorie.com/archives/browse.cgi | search |
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: | <baec0bf0.0403032116.3d91c482@posting.google.com> |
References: | <baec0bf0 DOT 0403022220 DOT 3534cf24 AT posting DOT google DOT com> <c2489p$oce$1 AT news DOT rz DOT uni-karlsruhe DOT de> |
NNTP-Posting-Host: | 212.220.74.133 |
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?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |