strcpy.3 (58d38e25205c6ee5ef0796ffa2cd8e2ca6c6e7f3) strcpy.3 (8269e8c887accbffa1e193394fc22fde8d0973e3)
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek and the American National Standards Committee X3,
6.\" on Information Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 33 unchanged lines hidden (view full) ---

42.Sh NAME
43.Nm strcpy , strncpy
44.Nd copy strings
45.Sh LIBRARY
46.Lb libc
47.Sh SYNOPSIS
48.In string.h
49.Ft char *
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek and the American National Standards Committee X3,
6.\" on Information Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 33 unchanged lines hidden (view full) ---

42.Sh NAME
43.Nm strcpy , strncpy
44.Nd copy strings
45.Sh LIBRARY
46.Lb libc
47.Sh SYNOPSIS
48.In string.h
49.Ft char *
50.Fn stpcpy "char *dst" "const char *src"
51.Ft char *
50.Fn strcpy "char * restrict dst" "const char * restrict src"
51.Ft char *
52.Fn strncpy "char * restrict dst" "const char * restrict src" "size_t len"
53.Sh DESCRIPTION
54The
52.Fn strcpy "char * restrict dst" "const char * restrict src"
53.Ft char *
54.Fn strncpy "char * restrict dst" "const char * restrict src" "size_t len"
55.Sh DESCRIPTION
56The
57.Fn stpcpy ,
55.Fn strcpy
56function
57copies the string
58.Fa src
59to
60.Fa dst
61(including the terminating
62.Ql \e0

--- 21 unchanged lines hidden (view full) ---

84.Sh RETURN VALUES
85The
86.Fn strcpy
87and
88.Fn strncpy
89functions
90return
91.Fa dst .
58.Fn strcpy
59function
60copies the string
61.Fa src
62to
63.Fa dst
64(including the terminating
65.Ql \e0

--- 21 unchanged lines hidden (view full) ---

87.Sh RETURN VALUES
88The
89.Fn strcpy
90and
91.Fn strncpy
92functions
93return
94.Fa dst .
95The
96.Fn stpcpy
97function returns a pointer to the terminating
98.Ql \e0
99character of
100.Fa dst .
92.Sh EXAMPLES
93The following sets
94.Va chararray
95to
96.Dq Li abc\e0\e0\e0 :
97.Bd -literal -offset indent
98char chararray[6];
99

--- 73 unchanged lines hidden (view full) ---

173.Sh STANDARDS
174The
175.Fn strcpy
176and
177.Fn strncpy
178functions
179conform to
180.St -isoC .
101.Sh EXAMPLES
102The following sets
103.Va chararray
104to
105.Dq Li abc\e0\e0\e0 :
106.Bd -literal -offset indent
107char chararray[6];
108

--- 73 unchanged lines hidden (view full) ---

182.Sh STANDARDS
183The
184.Fn strcpy
185and
186.Fn strncpy
187functions
188conform to
189.St -isoC .
190The
191.Fn stpcpy
192function is an MS-DOS and GNUism.
193.Fn stpcpy
194conforms to no standard.
195.Sh HISTORY
196The
197.Fn stpcpy
198function first appeared in
199.Fx 4.4 ,
200comming from 1998-ventage Linux.