[RFC] libstdc++/9817 or "passing C++ strings to C functions"
Paolo Carlini
pcarlini@unitus.it
Sun Feb 23 16:35:00 GMT 2003
Paolo Carlini wrote:
> Now, I have got an idea: what about substituting a conventional char
> for the original '\0' (f.i., '$') and then calling strcoll (strxfrm,
> respectively) as usual?
For concreteness, you will find attached a *very* rough and redundant
(please, be gentle ;) implementation of the idea. I'm still not sure
if this is allowed by the standard and if less costly solutions are
worthy (for instance calling the underlying strcoll more than one time
for each hunk).
Paolo.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030223/36d26af3/attachment.ksh>
More information about the Libstdc++
mailing list