diff options
Diffstat (limited to 'lib/libc/string/strdup.3')
-rw-r--r-- | lib/libc/string/strdup.3 | 5 |
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 |