Dan Sugalski <[EMAIL PROTECTED]> wrote: > ... You really want the > 'b' type if it's a long-lived thing. That pulls the buffer pointer > out of the string structure and passes it in, so it's suitable for > mutable stuff. (That's what it's there for, actually)
Using bufstart in string code is almost always wrong, e. g. a COWed substring has strstart pointing to the string while bufstart is the start of the whole buffer. But that's only a small implementation flaw. Anyway, yes 'b' seems the right thing here. If the library code messes with the string this might not be enough, though. leo