summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strdup.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/strdup.3')
-rw-r--r--src/lib/libc/string/strdup.39
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
47The 47The
48.Fn strdup 48.Fn strdup
49function 49function allocates sufficient memory for a copy of the string
50allocates sufficient memory for a copy
51of the string
52.Fa s , 50.Fa s ,
53does the copy, and returns a pointer to it. 51does the copy, and returns a pointer to it.
54The pointer may subsequently be used as an 52The pointer may subsequently be used as an argument to the function
55argument to the function
56.Xr free 3 . 53.Xr free 3 .
57.Pp 54.Pp
58If insufficient memory is available, 55If insufficient memory is available,