diff options
| author | aaron <> | 2000-04-21 15:32:15 +0000 |
|---|---|---|
| committer | aaron <> | 2000-04-21 15:32:15 +0000 |
| commit | 6e65d499b233fbed6f9fb0be5eb43e4ef9a6147a (patch) | |
| tree | c0934bd4d6973300ecb34c95420553c8c3bb98bc /src/lib/libc | |
| parent | 287002fde6bdd33ca24f49e401ebc5f085a938d6 (diff) | |
| download | openbsd-6e65d499b233fbed6f9fb0be5eb43e4ef9a6147a.tar.gz openbsd-6e65d499b233fbed6f9fb0be5eb43e4ef9a6147a.tar.bz2 openbsd-6e65d499b233fbed6f9fb0be5eb43e4ef9a6147a.zip | |
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 '')
| -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 , |
