documentation for tmpfile

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@30649 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jesus M. Castagnetto 2000-08-20 19:48:11 +00:00
parent 397108fb59
commit 3feb92cd34

View file

@ -2262,9 +2262,43 @@ $tmpfname = tempnam ("/tmp", "FOO");
</programlisting>
</example>
</para>
<para>
See also <function>tmpfile</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.tmpfile">
<refnamediv>
<refname>tmpfile</refname>
<refpurpose>Creates a temporary file</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>tmpfile</function></funcdef>
<paramdef>void</paramdef>
</funcprototype>
</funcsynopsis>
<para>
Creates a temporary file with an unique name in write mode,
returning a file handle, similar to the one returned by
<function>fopen</function>
The file is automatically removed when closed (using
<function>fclose</function>), or when the script ends.
</para>
<para>
For details, consult your system documentation on the tmpfile(3)
function, as well as the <literal>stdio.h</literal> header file.
</para>
<para>
See also <function>tempnam</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.touch">
<refnamediv>
<refname>touch</refname>