annotate scripts/miscellaneous/tempname.m @ 14138:72c96de7a403 stable

maint: update copyright notices for 2012
author John W. Eaton <jwe@octave.org>
date Mon, 02 Jan 2012 14:25:41 -0500
parents a3d21c3c0f58
children 1c89599167a6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14138
72c96de7a403 maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents: 13071
diff changeset
1 ## Copyright (C) 2003-2012 John W. Eaton
4266
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
2 ##
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
3 ## This file is part of Octave.
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
4 ##
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
5 ## Octave is free software; you can redistribute it and/or modify it
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
6 ## under the terms of the GNU General Public License as published by
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 5307
diff changeset
7 ## the Free Software Foundation; either version 3 of the License, or (at
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 5307
diff changeset
8 ## your option) any later version.
4266
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
9 ##
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
10 ## Octave is distributed in the hope that it will be useful, but
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
13 ## General Public License for more details.
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
14 ##
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
15 ## You should have received a copy of the GNU General Public License
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 5307
diff changeset
16 ## along with Octave; see the file COPYING. If not, see
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 5307
diff changeset
17 ## <http://www.gnu.org/licenses/>.
4266
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
18
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
19 ## -*- texinfo -*-
12211
11faa69c4eaa Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
20 ## @deftypefn {Function File} {} tempname ()
11faa69c4eaa Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
21 ## @deftypefnx {Function File} {} tempname (@var{dir})
11faa69c4eaa Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
22 ## @deftypefnx {Function File} {} tempname (@var{dir}, @var{prefix})
4266
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
23 ## This function is an alias for @code{tmpnam}.
12211
11faa69c4eaa Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
24 ## @seealso{tmpnam}
4266
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
25 ## @end deftypefn
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
26
4268
363d406ec86c [project @ 2003-01-03 15:55:01 by jwe]
jwe
parents: 4266
diff changeset
27 function filename = tempname (varargin)
4266
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
28
4268
363d406ec86c [project @ 2003-01-03 15:55:01 by jwe]
jwe
parents: 4266
diff changeset
29 filename = tmpnam (varargin{:});
4266
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
30
1086ac09a411 [project @ 2003-01-03 06:22:54 by jwe]
jwe
parents:
diff changeset
31 endfunction
13071
a3d21c3c0f58 codesprint: No tests needed for alias of tmpnam function.
Rik <octave@nomad.inbox5.com>
parents: 12211
diff changeset
32
a3d21c3c0f58 codesprint: No tests needed for alias of tmpnam function.
Rik <octave@nomad.inbox5.com>
parents: 12211
diff changeset
33
a3d21c3c0f58 codesprint: No tests needed for alias of tmpnam function.
Rik <octave@nomad.inbox5.com>
parents: 12211
diff changeset
34 %% No tests needed for alias.
a3d21c3c0f58 codesprint: No tests needed for alias of tmpnam function.
Rik <octave@nomad.inbox5.com>
parents: 12211
diff changeset
35 %!assert (1)