1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2011 - DIGITEO - Allan CORNET
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="tempname">
15 <refname>tempname</refname>
16 <refpurpose>unique name for temporary file</refpurpose>
19 <title>Calling Sequence</title>
20 <synopsis>tmp_name = tempname([prefix])</synopsis>
23 <title>Arguments</title>
37 a string: prefix of filename (On Windows, 3 characters maximum).
44 <title>Description</title>
46 The <function>tempname</function> creates a file with a unique
47 filename in the <varname>TMPDIR</varname> directory.
50 <code>tmp_name = tempname()</code> returns an unique string,
51 <varname>tmp_name</varname>, suitable for use as a temporary filename.
55 <title>Examples</title>
56 <programlisting role="example"><![CDATA[
64 <title>History</title>
67 <revnumber>5.4.0</revnumber>
68 <revremark>Function tempname introduced.</revremark>