Return a unique temporary filename as a string.
If prefix is omitted, a value of "oct-"
is used.
If dir is also omitted, the default directory for temporary files
(P_tmpdir
) is used. If dir is provided, it must exist,
otherwise the default directory for temporary files is used.
Programming Note: Because the named file is not opened by tempname
,
it is possible, though relatively unlikely, that it will not be available
by the time your program attempts to open it. If this is a concern,
see tmpfile
.
See also: mkstemp, tempdir, P_tmpdir, tmpfile.
Package: octave