<head><title>ColdC: Function/Method Reference: buf_to_str()</title></head> <body> <h1 align=center><a href="/ColdC/">ColdC</a>: <a href="/ColdC/Functions/">Function/Method Reference</a>: buf_to_str()</h1> <hr> <p> <font size=+1><i>STRING</i> <b>buf_to_str</b>(<i>BUFFER <b>buf</b></i>)</font> <p>This function converts the entire buffer specified by <var>buf</var> to a string. Newlines are converted to <code>"\n"</code>. To just get the first string in the buffer you can do: <blockquote><pre> i = `[10] in buffer; str = buf_to_str(subbuf(buffer, 1, i - 1)); buffer = subbuf(buffer, i + 1); </pre></blockquote> <p><hr size=4><p align=center><i>Last Modified on 24 Mar 1996</i> <br><i>Copyright © 1995, 1996, Brandon Gillespie</i> </body>