summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c
diff options
context:
space:
mode:
authorJohn Sonnenschein <johns@joyent.com>2011-12-15 22:44:06 +0000
committerJohn Sonnenschein <johns@joyent.com>2011-12-15 22:44:06 +0000
commitfde4bd62fc16c767a1d61994af3ca2b931881f16 (patch)
tree6c72e03c3c86bff83d50462b5cb9b4651550a26c /usr/src/man/man3c
parentc4aa323138d7633d35c7cbf4123aa100970a91f9 (diff)
parent7660940272c01cb2b7fd050a8536ae010e0dceaa (diff)
downloadillumos-joyent-fde4bd62fc16c767a1d61994af3ca2b931881f16.tar.gz
Merge branch 'gcc/upgrade' of https://github.com/richlowe/illumos-gate into gcc4
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