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 fba992edd9..7368d08e4b 100644
--- a/src/lib/libc/string/strcat.3
+++ b/src/lib/libc/string/strcat.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: strcat.3,v 1.16 2013/12/19 20:52:37 millert Exp $ 1.\" $OpenBSD: strcat.3,v 1.17 2014/04/19 11:30:40 deraadt Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1991 The Regents of the University of California. 3.\" Copyright (c) 1990, 1991 The Regents of the University of California.
4.\" All rights reserved. 4.\" All rights reserved.
@@ -31,12 +31,12 @@
31.\" 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
32.\" SUCH DAMAGE. 32.\" SUCH DAMAGE.
33.\" 33.\"
34.Dd $Mdocdate: December 19 2013 $ 34.Dd $Mdocdate: April 19 2014 $
35.Dt STRCAT 3 35.Dt STRCAT 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
38.Nm strcat 38.Nm strcat
39.Nd concatenate two strings 39.Nd concatenate two strings without bounds checking
40.Sh SYNOPSIS 40.Sh SYNOPSIS
41.In string.h 41.In string.h
42.Ft char * 42.Ft char *
@@ -50,22 +50,19 @@ to the end of the NUL-terminated string
50.Fa s , 50.Fa s ,
51then adds a terminating 51then adds a terminating
52.Ql \e0 . 52.Ql \e0 .
53The string 53.Pp
54.Fa s 54No bounds checking is performed.
55must have sufficient space to hold the result. 55If the buffer
56.Fa dst
57is not large enough to hold the result,
58subsequent memory will be damaged.
56.Sh RETURN VALUES 59.Sh RETURN VALUES
57The 60The
58.Fn strcat 61.Fn strcat
59function return the pointer 62function return the pointer
60.Fa s . 63.Fa s .
61.Sh SEE ALSO 64.Sh SEE ALSO
62.Xr bcopy 3 ,
63.Xr memccpy 3 ,
64.Xr memcpy 3 ,
65.Xr memmove 3 ,
66.Xr strcpy 3 ,
67.Xr strlcpy 3 , 65.Xr strlcpy 3 ,
68.Xr strncat 3 ,
69.Xr wcscat 3 , 66.Xr wcscat 3 ,
70.Xr wcslcpy 3 67.Xr wcslcpy 3
71.Sh STANDARDS 68.Sh STANDARDS