diff options
Diffstat (limited to 'src/lib/libc/string/strdup.3')
-rw-r--r-- | src/lib/libc/string/strdup.3 | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libc/string/strdup.3 b/src/lib/libc/string/strdup.3 index 73c144d6e4..457b8322cf 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.7 1999/06/04 19:14:56 aaron Exp $ | 1 | .\" $OpenBSD: strdup.3,v 1.8 2000/04/21 15:24:20 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. |
@@ -46,13 +46,10 @@ | |||
46 | .Sh DESCRIPTION | 46 | .Sh DESCRIPTION |
47 | The | 47 | The |
48 | .Fn strdup | 48 | .Fn strdup |
49 | function | 49 | function allocates sufficient memory for a copy of the string |
50 | allocates sufficient memory for a copy | ||
51 | of the string | ||
52 | .Fa s , | 50 | .Fa s , |
53 | does the copy, and returns a pointer to it. | 51 | does the copy, and returns a pointer to it. |
54 | The pointer may subsequently be used as an | 52 | The pointer may subsequently be used as an argument to the function |
55 | argument to the function | ||
56 | .Xr free 3 . | 53 | .Xr free 3 . |
57 | .Pp | 54 | .Pp |
58 | If insufficient memory is available, | 55 | If insufficient memory is available, |