_buf</A> sb2 is not changed.
You can use <A HREF="#sb_cat">sb_cat</A>() instead if you won't be needing sb2.
<A NAME="sb_char"></A><HR><PRE><B>char sb_char(<A HREF="strbuf.html">String_buf</A> sb, int n);
</B></PRE>This routine returns the n-th character (counting from 0) of <A HREF="strbuf.html">String_buf</A> sb.
If index n is out of range, the NULL character '\0' is returned.
<A NAME="sb_replace_char"></A><HR><PRE><B>void sb_replace_char(<A HREF="strbuf.html">String_buf</A> sb, int i, char c);
</B></PRE>