summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-10-11 03:57:59 +0000
committerRoland McGrath <roland@gnu.org>1994-10-11 03:57:59 +0000
commit704130a13d3d6c2cf3c25a110881c8d7aa2babe3 (patch)
tree71b5a621e5cbfa19ab3f0fabc10a8b01c81e3bb6
parent(write): Fix typo. (diff)
downloadglibc-704130a13d3d6c2cf3c25a110881c8d7aa2babe3.tar.gz
glibc-704130a13d3d6c2cf3c25a110881c8d7aa2babe3.tar.bz2
glibc-704130a13d3d6c2cf3c25a110881c8d7aa2babe3.zip
(Temporary Files): Say tempnam return is malloc'd.
-rw-r--r--manual/filesys.texi6
1 files changed, 4 insertions, 2 deletions
diff --git a/manual/filesys.texi b/manual/filesys.texi
index e5140cd960..c01779bc2f 100644
--- a/manual/filesys.texi
+++ b/manual/filesys.texi
@@ -1918,8 +1918,10 @@ less than @code{25}.
@comment SVID
@deftypefun {char *} tempnam (const char *@var{dir}, const char *@var{prefix})
This function generates a unique temporary filename. If @var{prefix} is
-not a null pointer, up to five characters of this string are used as
-a prefix for the file name.
+not a null pointer, up to five characters of this string are used as a
+prefix for the file name. The return value is a string newly allocated
+with @code{malloc}; you should release its storage with @code{free} when
+it is no longer needed.
The directory prefix for the temporary file name is determined by testing
each of the following, in sequence. The directory must exist and be