summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/string/strdup.35
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/string/strdup.3 b/lib/libc/string/strdup.3
index a0139d3..c582a70 100644
--- a/lib/libc/string/strdup.3
+++ b/lib/libc/string/strdup.3
@@ -56,7 +56,10 @@ The pointer may subsequently be used as an
argument to the function
.Xr free 3 .
.Pp
-If insufficient memory is available, NULL is returned.
+If insufficient memory is available, NULL is returned and
+.Va errno
+is set to
+.Er ENOMEM .
.Sh SEE ALSO
.Xr free 3 ,
.Xr malloc 3
OpenPOWER on IntegriCloud