9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "AMSRL-CI-CN" <gwyn@arl.army.mil>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] strdup()
Date: Wed, 10 Apr 2002 15:19:16 +0000	[thread overview]
Message-ID: <GuCvxp.4un@arl.army.mil> (raw)
In-Reply-To: <c092ee8e3350cef1e8988d34380698ad@plan9.bell-labs.com>

"rob pike, esq." <rob@plan9.bell-labs.com> wrote...
> Yes.  For reasons I can't fathom, strdup is not in the ANSI C definition.
> I hope C9X fixes this oversight.

We tried to include it, but there was not consensus to do so,
the primary objection being to system libraries allocating
storage that the application would be responsible for later
deallocating.  I didn't think it was a good objection, and as
a widely-used extension with an easy portable definition it
certainly is in need of standardization, just as gets was in the
1980s.  At least C99 added snprintf.


  reply	other threads:[~2002-04-10 15:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-09 13:56 rob pike, esq.
2002-04-10 15:19 ` AMSRL-CI-CN [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-04-10  1:41 rob pike, esq.
2002-04-10  8:55 ` Anthony Mandic
2002-04-10  1:30 dmr
2002-04-09 12:23 forsyth
2002-04-11  8:44 ` peter a. cejchan
2002-04-09 10:45 pac7
2002-04-09 11:22 ` Lucio De Re

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=GuCvxp.4un@arl.army.mil \
    --to=gwyn@arl.army.mil \
    --cc=9fans@cse.psu.edu \
    /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).