1STRCAT(3)                  Linux Programmer's Manual                 STRCAT(3)
2
3
4

NAME

6       strcat, strncat - concatenate two strings
7

SYNOPSIS

9       #include <string.h>
10
11       char *strcat(char *dest, const char *src);
12
13       char *strncat(char *dest, const char *src, size_t n);
14

DESCRIPTION

16       The  strcat()  function appends the src string to the dest string over‐
17       writing the `\0' character at the end of dest, and then adds  a  termi‐
18       nating  `\0'  character.   The  strings  may  not overlap, and the dest
19       string must have enough space for the result.
20
21       The strncat() function is similar, except that it will use  at  most  n
22       characters  from src.  Since the result is always terminated with `\0',
23       at most n+1 characters are written.
24

RETURN VALUE

26       The strcat() and strncat() functions return a pointer to the  resulting
27       string dest.
28

CONFORMING TO

30       SVr4, 4.3BSD, C89, C99.
31

SEE ALSO

33       bcopy(3),  memccpy(3),  memcpy(3),  strcpy(3),  strncpy(3),  wcscat(3),
34       wcsncat(3)
35
36
37
38GNU                               1993-04-11                         STRCAT(3)
Impressum