diff options
author | deraadt <> | 2014-04-19 11:30:40 +0000 |
---|---|---|
committer | deraadt <> | 2014-04-19 11:30:40 +0000 |
commit | 597610ccf04bbca4e88fac7988877d0a06e02211 (patch) | |
tree | fcfc398023e666979cbe5ad67cb1e398e980f095 /src/lib/libc/string/strcat.3 | |
parent | 442335bf77f2f6653794378cc53adb59bba1ed12 (diff) | |
download | openbsd-597610ccf04bbca4e88fac7988877d0a06e02211.tar.gz openbsd-597610ccf04bbca4e88fac7988877d0a06e02211.tar.bz2 openbsd-597610ccf04bbca4e88fac7988877d0a06e02211.zip |
Use somewhat harsher language and better examples; demonstrate that
non-dangerous use functions is difficult.
ok guenther
Diffstat (limited to 'src/lib/libc/string/strcat.3')
-rw-r--r-- | src/lib/libc/string/strcat.3 | 21 |
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 , |
51 | then adds a terminating | 51 | then adds a terminating |
52 | .Ql \e0 . | 52 | .Ql \e0 . |
53 | The string | 53 | .Pp |
54 | .Fa s | 54 | No bounds checking is performed. |
55 | must have sufficient space to hold the result. | 55 | If the buffer |
56 | .Fa dst | ||
57 | is not large enough to hold the result, | ||
58 | subsequent memory will be damaged. | ||
56 | .Sh RETURN VALUES | 59 | .Sh RETURN VALUES |
57 | The | 60 | The |
58 | .Fn strcat | 61 | .Fn strcat |
59 | function return the pointer | 62 | function 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 |