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:
Michael Kerrisk 2005-11-15 17:57:39 +00:00
parent 054fccc0d1
commit f820196915
1 changed files with 2 additions and 2 deletions

View File

@ -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