Hmm. Have you looked at the git "strbuf" code?
And stuff like "sb_string()" are just evil. The string is there. Just call
it something better than "s", and let people just use "sb->buf" or
something. Why make the interface harder to use than necessary?
Linus
-