From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: "孙世龙 sunshilong" <sunshilong369@gmail.com>
Cc: Dan Kegel <dank@kegel.com>, gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: Is realloc(3) permitted to fail when shrinking a block?
Date: Wed, 12 Aug 2020 12:59:18 +0100 [thread overview]
Message-ID: <CAH6eHdQftTt=99b1ukrRfoFRvssOJwP-=E--pPGUZpom4kdgMA@mail.gmail.com> (raw)
In-Reply-To: <CAAvDm6aSAGKe7qaB5fHiMm=XH1HcGiiFkAPq7pE15REqMuBy6w@mail.gmail.com>
On Wed, 12 Aug 2020 at 12:23, 孙世龙 sunshilong <sunshilong369@gmail.com> wrote:
>
> >This mailing list is about GCC, not general C programming. The realloc
> >function is not part of GCC.
> Sorry, I didn't notice it.
> I took it granted that libc is part of the GCC since there is a folder
> named "libstdc++" in the Github of GCC(i.e.
> https://github.com/gcc-mirror/gcc/tree/master/libstdc%2B%2B-v3).
>
> One more question arises, why there is no library for libc whereas
> libstdc++ is provided by GCC?
Because every unix-like OS already has its own libc, because C and
UNIX were developed hand-in-hand.
Traditionally they didn't have a C++ library, so a C++ compiler has to
provide the C++ library.
next prev parent reply other threads:[~2020-08-12 11:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-11 3:54 孙世龙 sunshilong
2020-08-11 3:58 ` Dan Kegel
2020-08-11 6:35 ` 孙世龙 sunshilong
2020-08-11 7:22 ` Jonathan Wakely
2020-08-12 11:23 ` 孙世龙 sunshilong
2020-08-12 11:59 ` Jonathan Wakely [this message]
2020-08-15 7:07 ` Florian Weimer
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='CAH6eHdQftTt=99b1ukrRfoFRvssOJwP-=E--pPGUZpom4kdgMA@mail.gmail.com' \
--to=jwakely.gcc@gmail.com \
--cc=dank@kegel.com \
--cc=gcc-help@gcc.gnu.org \
--cc=sunshilong369@gmail.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).