don't truncate lines, don't allow tabs to back up (I think this is tested!)
[unix-history] / usr / src / lib / libc / string / strcat.3
CommitLineData
2b62f761
KB
1.\" Copyright (c) 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek.
6.\"
7.\" %sccs.include.redist.man%
8.\"
b8dfab23 9.\" @(#)strcat.3 5.3 (Berkeley) %G%
2b62f761
KB
10.\"
11.TH STRCAT 3 ""
12.UC 4
13.SH NAME
14strcat \- concatenate strings
15.SH SYNOPSIS
16.nf
17.ft B
18#include <string.h>
19
20char *
21strcat(char *s, const char *append);
d68600ae
KB
22
23char *
24strncat(char *s, const char *append, size_t count);
2b62f761
KB
25.ft R
26.fi
27.SH DESCRIPTION
28.B Strcat
b8dfab23
KB
29and
30.B strncat
31append a copy of the null-terminated string
2b62f761
KB
32.I append
33to the end of the null-terminated string
34.IR s ,
b8dfab23
KB
35then add a terminating '\e0'.
36The string
37.I s
2b62f761 38must have sufficient space to hold the result.
d68600ae
KB
39.PP
40.B Strncat
41appends at most
42.I count
43characters.
b8dfab23
KB
44.PP
45.B Strcat
46and
47.B strncat
48return the pointer
49.IR s .
2b62f761 50.SH SEE ALSO
b8dfab23 51bcopy(3), memccpy(3), memcpy(3), memmove(3), strcpy(3)
2b62f761
KB
52.SH STANDARDS
53.B Strcat
d68600ae
KB
54and
55.B strncat
56conform to ANSI X3.159-1989 (``ANSI C'').