Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Aug 1997 09:01:09 -0400 (EDT)
From:      Tim Vanderhoek <hoek@hwcn.org>
To:        Bill Paul <wpaul@skynet.ctr.columbia.edu>
Cc:        chat@FreeBSD.ORG
Subject:   Re: variable sized arrays and gcc
Message-ID:  <Pine.GSO.3.96.970810085616.19142A-100000@james.freenet.hamilton.on.ca>
In-Reply-To: <199708100722.DAA03236@skynet.ctr.columbia.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 10 Aug 1997, Bill Paul wrote:

> int some_random_function(str)
> 	char			*str;
> {
> 	char			buf[strlen(str) + 10];

Heck, you can even do

int some_func (int a, int b, int c, char ar[a][b][c])
{
	/* Which gives me a full-blown multidimensional array
	 * as ar (ie. char[a][b][c], not char ***) */
}

FWIW, I rather like these extensions.


--
Outnumbered?  Maybe.  Outspoken?  Never!
tIM...HOEk




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.970810085616.19142A-100000>