Commit | Line | Data |
---|---|---|
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 | |
14 | strcat \- concatenate strings | |
15 | .SH SYNOPSIS | |
16 | .nf | |
17 | .ft B | |
18 | #include <string.h> | |
19 | ||
20 | char * | |
21 | strcat(char *s, const char *append); | |
d68600ae KB |
22 | |
23 | char * | |
24 | strncat(char *s, const char *append, size_t count); | |
2b62f761 KB |
25 | .ft R |
26 | .fi | |
27 | .SH DESCRIPTION | |
28 | .B Strcat | |
b8dfab23 KB |
29 | and |
30 | .B strncat | |
31 | append a copy of the null-terminated string | |
2b62f761 KB |
32 | .I append |
33 | to the end of the null-terminated string | |
34 | .IR s , | |
b8dfab23 KB |
35 | then add a terminating '\e0'. |
36 | The string | |
37 | .I s | |
2b62f761 | 38 | must have sufficient space to hold the result. |
d68600ae KB |
39 | .PP |
40 | .B Strncat | |
41 | appends at most | |
42 | .I count | |
43 | characters. | |
b8dfab23 KB |
44 | .PP |
45 | .B Strcat | |
46 | and | |
47 | .B strncat | |
48 | return the pointer | |
49 | .IR s . | |
2b62f761 | 50 | .SH SEE ALSO |
b8dfab23 | 51 | bcopy(3), memccpy(3), memcpy(3), memmove(3), strcpy(3) |
2b62f761 KB |
52 | .SH STANDARDS |
53 | .B Strcat | |
d68600ae KB |
54 | and |
55 | .B strncat | |
56 | conform to ANSI X3.159-1989 (``ANSI C''). |