linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Raseel Bhagat" <raseelbhagat@gmail.com>
To: C programming list <linux-c-programming@vger.kernel.org>
Subject: Re: how to implement routines that return general strings?
Date: Fri, 11 Aug 2006 12:33:48 +0530	[thread overview]
Message-ID: <f68850780608110003u78bc0f1albc7551f30599be27@mail.gmail.com> (raw)
In-Reply-To: <17627.40966.748782.988469@cerise.gclements.plus.com>

Hi Glynn,

On 8/11/06, Glynn Clements <glynn@gclements.plus.com> 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

  reply	other threads:[~2006-08-11  7:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-10 14:10 how to implement routines that return general strings? Robert P. J. Day
2006-08-10 17:12 ` Scott
2006-08-10 19:04   ` David Rientjes
2006-08-11 20:06   ` Kelly Burkhart
2006-08-12  9:36     ` Robert P. J. Day
2006-08-14 18:15       ` Scott
2006-08-10 21:07 ` Glynn Clements
2006-08-11  7:03   ` Raseel Bhagat [this message]
2006-08-11 18:36     ` Shorty Porty
  -- strict thread matches above, loose matches on Subject: below --
2006-08-10 16:51 Khan, Ahmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f68850780608110003u78bc0f1albc7551f30599be27@mail.gmail.com \
    --to=raseelbhagat@gmail.com \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).