strdup.3.patch   [plain text]


--- strdup.3.orig	2009-11-30 13:52:20.000000000 -0800
+++ strdup.3	2009-11-30 15:13:21.000000000 -0800
@@ -40,16 +40,21 @@
 .Sh SYNOPSIS
 .In string.h
 .Ft char *
-.Fn strdup "const char *str"
+.Fo strdup
+.Fa "const char *s1"
+.Fc
 .Ft char *
-.Fn strndup "const char *str" "size_t len"
+.Fo strndup
+.Fa "const char *s1"
+.Fa "size_t n"
+.Fc
 .Sh DESCRIPTION
 The
 .Fn strdup
 function
 allocates sufficient memory for a copy
 of the string
-.Fa str ,
+.Fa s1 ,
 does the copy, and returns a pointer to it.
 The pointer may subsequently be used as an
 argument to the function
@@ -63,16 +68,15 @@ is set to
 The
 .Fn strndup
 function copies at most
-.Fa len
+.Fa n
 characters from the string
-.Fa str
+.Fa s1
 always
 .Dv NUL
 terminating the copied string.
 .Sh SEE ALSO
 .Xr free 3 ,
-.Xr malloc 3 ,
-.Xr wcsdup 3
+.Xr malloc 3
 .Sh HISTORY
 The
 .Fn strdup