SM0 She11
Path:
/
/
usr
/
share
/
doc
/
neon-0.30.0
/
html
Full Path (server): /usr/share/doc/neon-0.30.0/html
Create Fil3
Upl04d Fil3
π api.html
[E]
[D]
[R]
π biblio.html
[E]
[D]
[R]
π compliance.html
[E]
[D]
[R]
π features.html
[E]
[D]
[R]
π index.html
[E]
[D]
[R]
π intro.html
[E]
[D]
[R]
π ref.html
[E]
[D]
[R]
π refalloc.html
[E]
[D]
[R]
π refauth.html
[E]
[D]
[R]
π refbuf.html
[E]
[D]
[R]
π refbufapp.html
[E]
[D]
[R]
π refbufcr.html
[E]
[D]
[R]
π refbufdest.html
[E]
[D]
[R]
π refbufutil.html
[E]
[D]
[R]
π refcert.html
[E]
[D]
[R]
π refclicert.html
[E]
[D]
[R]
π refconfig.html
[E]
[D]
[R]
π referr.html
[E]
[D]
[R]
π reffeat.html
[E]
[D]
[R]
π refgetst.html
[E]
[D]
[R]
π refi18n.html
[E]
[D]
[R]
π refiaddr.html
[E]
[D]
[R]
π refneon.html
[E]
[D]
[R]
π refopts.html
[E]
[D]
[R]
π refproxy.html
[E]
[D]
[R]
π refreq.html
[E]
[D]
[R]
π refreqbody.html
[E]
[D]
[R]
π refreqflags.html
[E]
[D]
[R]
π refreqhdr.html
[E]
[D]
[R]
π refresolve.html
[E]
[D]
[R]
π refresphdr.html
[E]
[D]
[R]
π refsess.html
[E]
[D]
[R]
π refsessflags.html
[E]
[D]
[R]
π refshave.html
[E]
[D]
[R]
π refsockinit.html
[E]
[D]
[R]
π refsslca.html
[E]
[D]
[R]
π refsslcert2.html
[E]
[D]
[R]
π refsslcertio.html
[E]
[D]
[R]
π refssldname.html
[E]
[D]
[R]
π refsslvfy.html
[E]
[D]
[R]
π refstatus.html
[E]
[D]
[R]
π reftok.html
[E]
[D]
[R]
π refvers.html
[E]
[D]
[R]
π refxml.html
[E]
[D]
[R]
π security.html
[E]
[D]
[R]
π using.html
[E]
[D]
[R]
π xml.html
[E]
[D]
[R]
Editing: refbufapp.html
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>ne_buffer_append</title><link rel="stylesheet" type="text/css" href="../manual.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="neon HTTP/WebDAV client library"><link rel="up" href="ref.html" title="neon API reference"><link rel="prev" href="refbuf.html" title="ne_buffer"><link rel="next" href="refbufutil.html" title="ne_buffer_clear"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">ne_buffer_append</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="refbuf.html">Prev</a>Β </td><th width="60%" align="center">neon API reference</th><td width="20%" align="right">Β <a accesskey="n" href="refbufutil.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="refbufapp"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ne_buffer_append, ne_buffer_zappend, ne_buffer_concat β append data to a string buffer</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include <ne_string.h></pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">ne_buffer_append</b>(</code></td><td>ne_buffer *<var class="pdparam">buf</var>, </td></tr><tr><td>Β </td><td>const char *<var class="pdparam">string</var>, </td></tr><tr><td>Β </td><td>size_t <var class="pdparam">len</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">Β </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">ne_buffer_zappend</b>(</code></td><td>ne_buffer *<var class="pdparam">buf</var>, </td></tr><tr><td>Β </td><td>const char *<var class="pdparam">string</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">Β </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">ne_buffer_concat</b>(</code></td><td>ne_buffer *<var class="pdparam">buf</var>, </td></tr><tr><td>Β </td><td>const char *<var class="pdparam">str</var>, </td></tr><tr><td>Β </td><td>...<code>)</code>;</td></tr></table><div class="funcprototype-spacer">Β </div></div></div><div class="refsect1"><a name="idm140368851063664"></a><h2>Description</h2><p>The <code class="function">ne_buffer_append</code> and <code class="function">ne_buffer_zappend</code> functions append a string to the end of a buffer; extending the buffer as necessary. The <code class="parameter">len</code> passed to <code class="function">ne_buffer_append</code> specifies the length of the string to append; there must be no <code class="literal">NUL</code> terminator in the first <code class="parameter">len</code> bytes of the string. <code class="function">ne_buffer_zappend</code> must be passed a <code class="literal">NUL</code>-terminated string.</p><p>The <code class="function">ne_buffer_concat</code> function takes a variable-length argument list following <code class="parameter">str</code>; each argument must be a <em class="type">char *</em> pointer to a <code class="literal">NUL</code>-terminated string. A <code class="literal">NULL</code> pointer must be given as the last argument to mark the end of the list. The strings (including <code class="parameter">str</code>) are appended to the buffer in the order given. None of the strings passed to <code class="function">ne_buffer_concat</code> are modified.</p></div><div class="refsect1"><a name="idm140368851052608"></a><h2>Examples</h2><p>The following code will output "<code class="literal">Hello, world. And goodbye.</code>".</p><pre class="programlisting">ne_buffer *buf = ne_buffer_create(); ne_buffer_zappend(buf, "Hello"); ne_buffer_concat(buf, ", world. ", "And ", "goodbye.", NULL); puts(buf->data); ne_buffer_destroy(buf);</pre></div><div class="refsect1"><a name="idm140368851050016"></a><h2>See also</h2><p><a class="xref" href="refbuf.html#ne_buffer">ne_buffer</a>, <a class="xref" href="refbufcr.html#ne_buffer_create">ne_buffer_create</a>, <a class="xref" href="refbufdest.html#ne_buffer_destroy">ne_buffer_destroy</a></p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="refbuf.html">Prev</a>Β </td><td width="20%" align="center"><a accesskey="u" href="ref.html">Up</a></td><td width="40%" align="right">Β <a accesskey="n" href="refbufutil.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">ne_bufferΒ </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">Β ne_buffer_clear</td></tr></table></div></body></html>
Save