diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1998-11-10 22:27:31 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1998-11-10 22:27:31 +0000 |
commit | eef0484f3135b29ae3461b131cf54b2589ec1468 (patch) | |
tree | 8b2a685db6b56d87b07a78db4705644303cd7a84 | |
parent | 33417308575479cc36903ad5eb22bc82ed130b15 (diff) |
getenv() result is read-only, unless you're looking for trouble.
-rw-r--r-- | lib/libc/stdlib/getenv.3 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/stdlib/getenv.3 b/lib/libc/stdlib/getenv.3 index 24a8d3d0953..ed89ccbe7d3 100644 --- a/lib/libc/stdlib/getenv.3 +++ b/lib/libc/stdlib/getenv.3 @@ -33,7 +33,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: getenv.3,v 1.2 1996/08/10 05:03:00 tholo Exp $ +.\" $OpenBSD: getenv.3,v 1.3 1998/11/10 22:27:30 espie Exp $ .\" .Dd December 11, 1993 .Dt GETENV 3 @@ -119,6 +119,10 @@ return zero if successful; otherwise the global variable .Va errno is set to indicate the error and a \-1 is returned. +.Pp +If +.Fn getenv +is succesful, the string returned should be considered read-only. .Sh ERRORS .Bl -tag -width [ENOMEM] .It Bq Er ENOMEM |