summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strdup.3
diff options
context:
space:
mode:
authormillert <>1997-08-20 04:18:52 +0000
committermillert <>1997-08-20 04:18:52 +0000
commit4faa3305b950b8ac8eaa6c02f8d7099f2e0f623d (patch)
tree491119cbafe91e0b3d6f6b0d329dfe76a07e68e0 /src/lib/libc/string/strdup.3
parenteefd83616fed7208460c4c742ea85c68488acf7c (diff)
downloadopenbsd-4faa3305b950b8ac8eaa6c02f8d7099f2e0f623d.tar.gz
openbsd-4faa3305b950b8ac8eaa6c02f8d7099f2e0f623d.tar.bz2
openbsd-4faa3305b950b8ac8eaa6c02f8d7099f2e0f623d.zip
Update man page and sccs tags from lite2. Minor cleanup by me as well.
Diffstat (limited to 'src/lib/libc/string/strdup.3')
-rw-r--r--src/lib/libc/string/strdup.323
1 files changed, 13 insertions, 10 deletions
diff --git a/src/lib/libc/string/strdup.3 b/src/lib/libc/string/strdup.3
index 4129fe5c0e..04ec042d00 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.4 1997/08/20 04:18:51 millert 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,9 +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.\" $OpenBSD: strdup.3,v 1.3 1996/10/29 23:41:57 michaels Exp $ 34.\" @(#)strdup.3 8.1 (Berkeley) 6/9/93
33.\" 35.\"
34.Dd April 19, 1991 36.Dd June 9, 1993
35.Dt STRDUP 3 37.Dt STRDUP 3
36.Os 38.Os
37.Sh NAME 39.Sh NAME
@@ -52,13 +54,14 @@ does the copy, and returns a pointer to it.
52The pointer may subsequently be used as an 54The pointer may subsequently be used as an
53argument to the function 55argument to the function
54.Xr free 3 . 56.Xr free 3 .
57.Pp
58If insufficient memory is available, NULL is returned.
55.Sh SEE ALSO 59.Sh SEE ALSO
56.Xr free 3 , 60.Xr free 3
57.Xr malloc 3 , 61.Xr malloc 3
58.Xt strcpy 3 , 62.Xr strcpy 3
59.Xt strlen 3 63.Xr strlen 3
60.Sh HISTORY 64.Sh HISTORY
61The 65The
62.Fn strdup 66.Fn strdup
63function is 67function first appeared in 4.4BSD.
64.Ud .