From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Buchan Subject: Re: Returning pointer to array of structures Date: Thu, 1 May 2003 10:49:50 +0100 Sender: linux-c-programming-owner@vger.kernel.org Message-ID: <20030501094949.GB25746@gre.ac.uk> References: <20030429083122.GA22282@gre.ac.uk> <20030430082421.GH22282@gre.ac.uk> <16048.28433.119139.292067@cerise.nosuchdomain.co.uk> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <16048.28433.119139.292067@cerise.nosuchdomain.co.uk> List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Glynn Clements Cc: linux-c-programming On Thu, May 01, 2003 at 01:49:21AM +0100, Glynn Clements wrote: > > > > As the way i had coded it before where i was returning the structure > > each time worked, I am assuming this is a better way to code it (seeing > > as you guys have suggested it and i know diddly squat :-) > > > > Why is this so? > > The main issue is that it's unnecessary in this case. That lead me > (and probably others) to suspect that you might have misunderstood > what was happening and/or meant to do something else. Yep. :-) I think i have a better understanding now though and am very grateful to the list for sorting me out, as i have also been thrown into C programming by my boss. arrghh, bring back Perl! Thanks again. Martin