🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.f77
Article #256

Re: arrays, anyone?

#256
From: Roy Smith
Date: Fri, 06 Sep 1985 00:34
21 lines
1449 bytes
> > Now, in C 2-d arrays are simply an array of pointers to a linear array.
> 
> Slight misconception here.  In C, multi-dimensional arrays are *not*
> arrays of pointers to linear arrays.

	Ah, but they could be if you were willing to do all the memory
allocation and pointer set-up yourself.  I was and I did.  I posted a
little routine called arrayalloc to mod.sources a month or so back which
does just what you are talking about here.  If you are interested, look
through your archives for the following or write me and I'll send you a
copy.

	Subject: run-time memory allocation for multi-dimensional arrays
	Message-ID: <1010@genrad.UUCP>
	Date: 13 Aug 85 11:59:49 GMT
	Mod.sources:  Volume 2, Issue 36
	Submitted by: decvax!allegra!phri!roy (Roy Smith)
-- 
Roy Smith <allegra!phri!roy>
System Administrator, Public Health Research Institute
455 First Avenue, New York, NY 10016
Technical Details
Message-ID: <455@phri.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utcs!mnetor!lsuc!pesnta!phri!roy
References: <390@ur-helheim.UUCP> <168@rtp47.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site phri.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utcs!mnetor!lsuc!pesnta!phri!roy
From: roy@phri.UUCP (Roy Smith)
Newsgroups: net.lang.f77,net.lang.c
Subject: Re: arrays, anyone?
Message-ID: <455@phri.UUCP>
Date: Thu, 5-Sep-85 20:34:57 EDT
Article-I.D.: phri.455
Posted: Thu Sep  5 20:34:57 1985
Date-Received: Mon, 9-Sep-85 05:04:58 EDT
References: <390@ur-helheim.UUCP> <168@rtp47.UUCP>
Organization: Public Health Research Inst. (NY, NY)
Lines: 21