From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Raseel Bhagat" Subject: Re: how to implement routines that return general strings? Date: Fri, 11 Aug 2006 12:33:48 +0530 Message-ID: References: <17627.40966.748782.988469@cerise.gclements.plus.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <17627.40966.748782.988469@cerise.gclements.plus.com> Content-Disposition: inline Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: C programming list Hi Glynn, On 8/11/06, Glynn Clements wrote: > Avoid the second form. Apart from not being re-entrant, it can lead to > bugs which can be hard to find, particularly if the function in > question is relatively general-purpose and may be used from various > places in your code. Can you please ellaborate how you came to the conclusion that that second form cannot be re-entrant and thus implying the first form is ? -- Raseel. http://osd.byethost8.com http://raseel.livejournal.com