diff options
author | John Sonnenschein <johns@joyent.com> | 2012-01-12 19:53:38 +0000 |
---|---|---|
committer | John Sonnenschein <johns@joyent.com> | 2012-01-12 19:53:38 +0000 |
commit | 9aac36a25d67d80901ad3284d1c2045d3d1a6d64 (patch) | |
tree | ea632ee03eb913689573afd73152a12bb20e0a81 /usr/src/man/man3c/mktemp.3c | |
parent | 4b5a316acf0f02f1c4823637cdfa088b8bd2340b (diff) | |
parent | 82dec0a6f9e2e62fb6a4e2fc08d397b21b6a21dc (diff) | |
download | illumos-joyent-9aac36a25d67d80901ad3284d1c2045d3d1a6d64.tar.gz |
[OS-714] illumos merge
Merge git://github.com/illumos/illumos-gate
Conflicts:
usr/src/uts/common/inet/tcp/tcp_timers.c
usr/src/uts/common/io/mac/mac_sched.c
Diffstat (limited to 'usr/src/man/man3c/mktemp.3c')
-rw-r--r-- | usr/src/man/man3c/mktemp.3c | 6 |
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 |