diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-04-21 15:32:16 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-04-21 15:32:16 +0000 |
commit | 1fccc43449060237216c6dec83f575811251fb08 (patch) | |
tree | 58bad333468aa420808e1216ac6bca8ef296b2c3 /lib/libc | |
parent | d0f0e860dbba07daae62842d0a6791be42e3b04b (diff) |
Add ERRORS section (the strdup(3) function may fail and set errno to any of the
errors specified by the library routine malloc(3)).
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/string/strdup.3 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/string/strdup.3 b/lib/libc/string/strdup.3 index 2734bf4593a..9c154c7d70f 100644 --- a/lib/libc/string/strdup.3 +++ b/lib/libc/string/strdup.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: strdup.3,v 1.9 2000/04/21 15:27:40 aaron Exp $ +.\" $OpenBSD: strdup.3,v 1.10 2000/04/21 15:32:15 aaron Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -68,6 +68,13 @@ if ((p = strdup("foobar")) == NULL) { exit(1); } .Ed +.Sh ERRORS +The +.Fn strdup +function may fail and set the external variable +.Va errno +for any of the errors specified for the library function +.Xr malloc 3 . .Sh SEE ALSO .Xr free 3 , .Xr malloc 3 , |