mirror of https://github.com/mkerrisk/man-pages
Although the glibc implementation returns -1 on error (and some
other man pages (e.g., the BSDs) also document that value for error returns), SUSv3 merely says "non-zero" (and this is what manual pages on many implementations also say).
This commit is contained in:
parent
054fccc0d1
commit
f820196915
|
@ -51,8 +51,8 @@ then the value of \fIname\fP in the environment is changed to
|
|||
The string pointed to by \fIstring\fP becomes part of the environment,
|
||||
so altering the string changes the environment.
|
||||
.SH "RETURN VALUE"
|
||||
The \fBputenv\fP() function returns zero on success, or \-1 if an error
|
||||
occurs.
|
||||
The \fBputenv\fP() function returns zero on success,
|
||||
or non-zero if an error occurs.
|
||||
.SH ERRORS
|
||||
.TP
|
||||
.B ENOMEM
|
||||
|
|
Loading…
Reference in New Issue