summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strdup.3
diff options
context:
space:
mode:
authoraaron <>2000-04-21 15:24:20 +0000
committeraaron <>2000-04-21 15:24:20 +0000
commit9fb35611cc3d03bef8b690b62e0904507c414a61 (patch)
treecbb158a96fec3a91f1d59c3e9f768b10d6ed872e /src/lib/libc/string/strdup.3
parenta4336f357f9e30dffdfad4909b24bd2e82c096a2 (diff)
downloadopenbsd-9fb35611cc3d03bef8b690b62e0904507c414a61.tar.gz
openbsd-9fb35611cc3d03bef8b690b62e0904507c414a61.tar.bz2
openbsd-9fb35611cc3d03bef8b690b62e0904507c414a61.zip
Flesh out libc string function man pages.
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,