This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: correct "C" headers, higher priority


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]