summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c
diff options
context:
space:
mode:
authorYuri Pankov <yuri.pankov@nexenta.com>2011-12-10 01:10:32 +0000
committerRichard Lowe <richlowe@richlowe.net>2011-12-10 01:10:32 +0000
commit288958749ebf9977004aa1533f3e41abc2f24a4a (patch)
tree4e13dc53aa0715fb5a68b4e0e76deb8dc332592f /usr/src/man/man3c
parent8d136591482e6639d8b9563fcf215b17dbd6223d (diff)
downloadillumos-joyent-288958749ebf9977004aa1533f3e41abc2f24a4a.tar.gz
1863 gcc compiled libsmb coredumps in trim_whitespace
1866 libsmbns is passing constant string to mktemp(3C) 1867 mktemp(3) gives bad advice in EXAMPLES section
Diffstat (limited to 'usr/src/man/man3c')
-rw-r--r--usr/src/man/man3c/mktemp.3c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/man/man3c/mktemp.3c b/usr/src/man/man3c/mktemp.3c
index 2a280330cd..ea14551e0d 100644
--- a/usr/src/man/man3c/mktemp.3c
+++ b/usr/src/man/man3c/mktemp.3c
@@ -32,8 +32,8 @@ created for each unique \fItemplate\fR.
.SH RETURN VALUES
.sp
.LP
-The \fBmktemp()\fR function returns the pointer \fItemplate\fR. If a unique
-name cannot be created, \fItemplate\fR points to a null string.
+The \fBmktemp()\fR function returns a pointer to the \fItemplate\fR on success
+and \fBNULL\fR if unique name cannot be created.
.SH ERRORS
.sp
.LP
@@ -52,7 +52,7 @@ pointer to the "template" string that contains the new filename.
.nf
#include <stdlib.h>
\&...
-char *template = "/tmp/fileXXXXXX";
+char template[] = "/tmp/fileXXXXXX";
char *ptr;
ptr = mktemp(template);
.fi