diff options
Diffstat (limited to 'src/lib/libc/string/strdup.3')
| -rw-r--r-- | src/lib/libc/string/strdup.3 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libc/string/strdup.3 b/src/lib/libc/string/strdup.3 index 2734bf4593..9c154c7d70 100644 --- a/src/lib/libc/string/strdup.3 +++ b/src/lib/libc/string/strdup.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: strdup.3,v 1.9 2000/04/21 15:27:40 aaron Exp $ | 1 | .\" $OpenBSD: strdup.3,v 1.10 2000/04/21 15:32:15 aaron Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .\" Copyright (c) 1990, 1991, 1993 | 3 | .\" Copyright (c) 1990, 1991, 1993 |
| 4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. |
| @@ -68,6 +68,13 @@ if ((p = strdup("foobar")) == NULL) { | |||
| 68 | exit(1); | 68 | exit(1); |
| 69 | } | 69 | } |
| 70 | .Ed | 70 | .Ed |
| 71 | .Sh ERRORS | ||
| 72 | The | ||
| 73 | .Fn strdup | ||
| 74 | function may fail and set the external variable | ||
| 75 | .Va errno | ||
| 76 | for any of the errors specified for the library function | ||
| 77 | .Xr malloc 3 . | ||
| 71 | .Sh SEE ALSO | 78 | .Sh SEE ALSO |
| 72 | .Xr free 3 , | 79 | .Xr free 3 , |
| 73 | .Xr malloc 3 , | 80 | .Xr malloc 3 , |
