Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > e3d62627d1d1aab7ab1be2dd7f65a872 > files > 410

ecl-10.4.1-1.fc14.x86_64.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>allocate-foreign-string</title><link rel="stylesheet" href="ecl.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="The ECL manual"><link rel="up" href="rn04.html" title="Strings"><link rel="prev" href="rn04re74.html" title="convert-to-foreign-string"><link rel="next" href="rn05.html" title="Functions &amp; Libraries"></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"><code class="function">allocate-foreign-string</code></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="rn04re74.html">Prev</a>&#160;</td><th width="60%" align="center">Strings</th><td width="20%" align="right">&#160;<a accesskey="n" href="rn05.html">Next</a></td></tr></table><hr></div><div class="refentry" title="allocate-foreign-string"><a name="uffi.allocate-foreign-string"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p><code class="function">allocate-foreign-string</code> &#8212; Allocates space for a foreign string.
    </p></div><div class="refsynopsisdiv" title="Macro"><h2>Macro</h2><pre class="synopsis">
     <code class="function">allocate-foreign-string</code> <em class="replaceable"><code>size
     &amp;key unsigned</code></em> =&gt;
     <span class="returnvalue">foreign-string</span>
    </pre><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>size</code></em></span></p></td><td><p>The size of the space to be allocated in bytes.
       </p></td></tr><tr><td><p><span class="term"><em class="parameter"><code>unsigned</code></em></span></p></td><td><p>A boolean flag with a default value of <code class="constant">T</code>. When true,
       marks the pointer as an <code class="constant">:unsigned-char</code>.
       </p></td></tr><tr><td><p><span class="term"><span class="returnvalue">foreign-string</span></span></p></td><td><p>A foreign string which has undefined contents.
       </p></td></tr></tbody></table></div></div><div class="refsect1" title="Description"><a name="id694418"></a><h2>Description</h2><p>
     Allocates space for a foreign string. Memory should
     be freed with <code class="function">free-foreign-object</code>.
    </p></div><div class="refsect1" title="Side Effects"><a name="id694434"></a><h2>Side Effects</h2><p>None.</p></div><div class="refsect1" title="Affected by"><a name="id694445"></a><h2>Affected by</h2><p>None.</p></div><div class="refsect1" title="Exceptional Situations"><a name="id694455"></a><h2>Exceptional Situations</h2><p>None.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="rn04re74.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="rn04.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="rn05.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><code class="function">convert-to-foreign-string</code>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;Functions &amp; Libraries</td></tr></table></div></body></html>