This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: correct "C" headers, higher priority
- To: "Stephen M. Webb" <stephen at bregmasoft dot com>
- Subject: Re: correct "C" headers, higher priority
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Fri, 1 Jun 2001 11:26:41 -0700 (PDT)
- cc: libstdc++ at gcc dot gnu dot org
> I've been trying to figure out how to build the <c...> headers by leveraging the
> C library headers. Perhaps this is entirely the wrong approach. Maybe what
> should be done is implement the C++ library on top of the C library, but keep
> the headers discrete. For example, std::strlen() would be declared extern in
> <cstring>, and the definition of that finction in some .cc file would simply
> forward the ::strlen() function from the underlying C library. Forgive me if
> this is too obvious, but none of the C++ standard libraries I've examined take
> this approach (I don't have access to most proprietary ones).
I'm not quite sure I follow you. Could you work up an example for just
strchr?
thanks,
benjamin