summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strcat.3
diff options
context:
space:
mode:
authorjaredy <>2005-08-06 03:21:36 +0000
committerjaredy <>2005-08-06 03:21:36 +0000
commit688d6cbb33ef71f63fab8688e85ac2f7aeb7b164 (patch)
tree77512edbdfbc7521fca9b386450af369c7b4ee75 /src/lib/libc/string/strcat.3
parent932da6a5c29178852f64fcd9163a9ea6b06cd011 (diff)
downloadopenbsd-688d6cbb33ef71f63fab8688e85ac2f7aeb7b164.tar.gz
openbsd-688d6cbb33ef71f63fab8688e85ac2f7aeb7b164.tar.bz2
openbsd-688d6cbb33ef71f63fab8688e85ac2f7aeb7b164.zip
- macro, punctuation, and rewording tweaks
- avoid first person. ok jmc
Diffstat (limited to 'src/lib/libc/string/strcat.3')
-rw-r--r--src/lib/libc/string/strcat.312
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/libc/string/strcat.3 b/src/lib/libc/string/strcat.3
index 89d368c3fb..b81e724917 100644
--- a/src/lib/libc/string/strcat.3
+++ b/src/lib/libc/string/strcat.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: strcat.3,v 1.10 2005/02/25 03:12:44 cloder Exp $ 32.\" $OpenBSD: strcat.3,v 1.11 2005/08/06 03:21:36 jaredy Exp $
33.\" 33.\"
34.Dd July 8, 1997 34.Dd July 8, 1997
35.Dt STRCAT 3 35.Dt STRCAT 3
@@ -78,7 +78,7 @@ functions return the pointer
78The following appends 78The following appends
79.Dq Li abc 79.Dq Li abc
80to 80to
81.Dq Li chararray : 81.Va chararray :
82.Bd -literal -offset indent 82.Bd -literal -offset indent
83char *letters = "abcdefghi"; 83char *letters = "abcdefghi";
84 84
@@ -99,11 +99,13 @@ buf[sizeof(buf) - 1] = '\e0';
99.Ed 99.Ed
100.Pp 100.Pp
101The above will copy as many characters from 101The above will copy as many characters from
102.Dq Li input 102.Va input
103to 103to
104.Dq Li buf 104.Va buf
105as will fit. 105as will fit.
106It then appends as many characters from suffix as will fit (or none 106It then appends as many characters from
107.Va suffix
108as will fit (or none
107if there is no space). 109if there is no space).
108For operations like this, the 110For operations like this, the
109.Xr strlcpy 3 111.Xr strlcpy 3