scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

strcat.man (615B)


      1 .TH strcat 3 scc\-VERSION
      2 .SH NAME
      3 strcat - concatenate two strings
      4 .SH SYNOPSIS
      5 #include <string.h>
      6 
      7 char *strcat(char *restrict s1, const char *restrict s2)
      8 .SH DESCRIPTION
      9 The
     10 .BR strcat ()
     11 function appends a copy of the null-terminated string at
     12 .I s2
     13 to the end of the string at
     14 .IR s1 ,
     15 including its terminating null byte.
     16 .PP
     17 The first byte of
     18 .I s2
     19 replaces the null terminator at the end of
     20 .IR s1 .
     21 .PP
     22 Overlapping source and destination regions produce undefined behavior.
     23 .SH RETURN VALUE
     24 The
     25 .BR strcat ()
     26 function returns its first argument,
     27 .IR s1 .
     28 .SH STANDARDS
     29 ISO/IEC 9899:1999 Section 7.21.3.1