summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strcat.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/strcat.3')
-rw-r--r--src/lib/libc/string/strcat.321
1 files changed, 9 insertions, 12 deletions
diff --git a/src/lib/libc/string/strcat.3 b/src/lib/libc/string/strcat.3
index 6a7c51c487..e9e5163bd3 100644
--- a/src/lib/libc/string/strcat.3
+++ b/src/lib/libc/string/strcat.3
@@ -33,7 +33,7 @@
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE. 34.\" SUCH DAMAGE.
35.\" 35.\"
36.\" $OpenBSD: strcat.3,v 1.7 1999/06/06 06:57:52 pjanzen Exp $ 36.\" $OpenBSD: strcat.3,v 1.8 2000/04/21 15:24:19 aaron Exp $
37.\" 37.\"
38.Dd July 8, 1997 38.Dd July 8, 1997
39.Dt STRCAT 3 39.Dt STRCAT 3
@@ -53,8 +53,7 @@ The
53.Fn strcat 53.Fn strcat
54and 54and
55.Fn strncat 55.Fn strncat
56functions 56functions append a copy of the null-terminated string
57append a copy of the null-terminated string
58.Fa append 57.Fa append
59to the end of the null-terminated string 58to the end of the null-terminated string
60.Fa s , 59.Fa s ,
@@ -66,8 +65,7 @@ must have sufficient space to hold the result.
66.Pp 65.Pp
67The 66The
68.Fn strncat 67.Fn strncat
69function 68function appends not more than
70appends not more than
71.Fa count 69.Fa count
72characters where space for the terminating 70characters where space for the terminating
73.Ql \e0 71.Ql \e0
@@ -78,8 +76,7 @@ The
78.Fn strcat 76.Fn strcat
79and 77and
80.Fn strncat 78.Fn strncat
81functions 79functions return the pointer
82return the pointer
83.Fa s . 80.Fa s .
84.Sh EXAMPLES 81.Sh EXAMPLES
85The following appends 82The following appends
@@ -109,9 +106,10 @@ The above will copy as many characters from
109.Dq Li input 106.Dq Li input
110to 107to
111.Dq Li buf 108.Dq Li buf
112as will 109as will fit.
113fit. It then appends as many characters from suffix as will fit (or none 110It then appends as many characters from suffix as will fit (or none
114if there is no space). For operations like this, the 111if there is no space).
112For operations like this, the
115.Xr strlcpy 3 113.Xr strlcpy 3
116and 114and
117.Xr strlcat 3 115.Xr strlcat 3
@@ -133,6 +131,5 @@ The
133.Fn strcat 131.Fn strcat
134and 132and
135.Fn strncat 133.Fn strncat
136functions 134functions conform to
137conform to
138.St -ansiC . 135.St -ansiC .