diff options
Diffstat (limited to 'src/lib/libc/string/strdup.3')
-rw-r--r-- | src/lib/libc/string/strdup.3 | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/lib/libc/string/strdup.3 b/src/lib/libc/string/strdup.3 index 925cbf3d46..6abbba57cb 100644 --- a/src/lib/libc/string/strdup.3 +++ b/src/lib/libc/string/strdup.3 | |||
@@ -1,5 +1,7 @@ | |||
1 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. | 1 | .\" $OpenBSD: strdup.3,v 1.6 1998/08/19 05:51:14 pjanzen Exp $ |
2 | .\" All rights reserved. | 2 | .\" |
3 | .\" Copyright (c) 1990, 1991, 1993 | ||
4 | .\" The Regents of the University of California. All rights reserved. | ||
3 | .\" | 5 | .\" |
4 | .\" Redistribution and use in source and binary forms, with or without | 6 | .\" Redistribution and use in source and binary forms, with or without |
5 | .\" modification, are permitted provided that the following conditions | 7 | .\" modification, are permitted provided that the following conditions |
@@ -29,10 +31,9 @@ | |||
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 31 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
30 | .\" SUCH DAMAGE. | 32 | .\" SUCH DAMAGE. |
31 | .\" | 33 | .\" |
32 | .\" from: @(#)strdup.3 5.3 (Berkeley) 4/19/91 | 34 | .\" @(#)strdup.3 8.1 (Berkeley) 6/9/93 |
33 | .\" $Id: strdup.3,v 1.1.1.1 1995/10/18 08:42:22 deraadt Exp $ | ||
34 | .\" | 35 | .\" |
35 | .Dd April 19, 1991 | 36 | .Dd June 9, 1993 |
36 | .Dt STRDUP 3 | 37 | .Dt STRDUP 3 |
37 | .Os | 38 | .Os |
38 | .Sh NAME | 39 | .Sh NAME |
@@ -53,13 +54,15 @@ does the copy, and returns a pointer to it. | |||
53 | The pointer may subsequently be used as an | 54 | The pointer may subsequently be used as an |
54 | argument to the function | 55 | argument to the function |
55 | .Xr free 3 . | 56 | .Xr free 3 . |
57 | .Pp | ||
58 | If insufficient memory is available, NULL is returned. | ||
56 | .Sh SEE ALSO | 59 | .Sh SEE ALSO |
57 | .Xr free 3 , | 60 | .Xr free 3 , |
58 | .Xr malloc 3 , | 61 | .Xr malloc 3 , |
59 | .Xt strcpy 3 , | 62 | .Xr strcpy 3 , |
60 | .Xt strlen 3 | 63 | .Xr strlen 3 |
61 | .Sh HISTORY | 64 | .Sh HISTORY |
62 | The | 65 | The |
63 | .Fn strdup | 66 | .Fn strdup |
64 | function | 67 | function first appeared in |
65 | .Ud . | 68 | .Bx 4.4 . |