scc

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

strcpy.3 (512B)


      1 .TH strcpy 3
      2 .SH NAME
      3 strcpy - copy a string
      4 .SH SYNOPSIS
      5 #include <string.h>
      6 
      7 char *strcpy(char *restrict s1, const char *restrict s2)
      8 .SH DESCRIPTION
      9 The
     10 .BR strcpy ()
     11 function copies the string
     12 pointed to by
     13 .I s2
     14 (including the terminating null character)
     15 into the character array pointed to by
     16 .IR s1 .
     17 If copying takes place between objects that overlap,
     18 behaviour is undefined.
     19 .SH RETURN VALUE
     20 The
     21 .BR strcpy ()
     22 function shall return the pointer
     23 .IR s1 .
     24 .SH STANDARDS
     25 ISO/IEC 9899:1999 Section 7.21.2.3