Deleted Added
full compact
strcpy.3 (108037) strcpy.3 (108087)
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

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

29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE.
35.\"
36.\" @(#)strcpy.3 8.1 (Berkeley) 6/4/93
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

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

29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE.
35.\"
36.\" @(#)strcpy.3 8.1 (Berkeley) 6/4/93
37.\" $FreeBSD: head/lib/libc/string/strcpy.3 108037 2002-12-18 12:45:11Z ru $
37.\" $FreeBSD: head/lib/libc/string/strcpy.3 108087 2002-12-19 09:40:28Z ru $
38.\"
39.Dd August 9, 2001
40.Dt STRCPY 3
41.Os
42.Sh NAME
43.Nm strcpy , strncpy
44.Nd copy strings
45.Sh LIBRARY

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

125.Ed
126.Pp
127Note that it does
128.Em not
129.Tn NUL
130terminate
131.Va chararray
132because the length of the source string is greater than or equal
38.\"
39.Dd August 9, 2001
40.Dt STRCPY 3
41.Os
42.Sh NAME
43.Nm strcpy , strncpy
44.Nd copy strings
45.Sh LIBRARY

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

125.Ed
126.Pp
127Note that it does
128.Em not
129.Tn NUL
130terminate
131.Va chararray
132because the length of the source string is greater than or equal
133to the length parameter.
133to the length argument.
134.Pp
135The following copies as many characters from
136.Va input
137to
138.Va buf
139as will fit and
140.Tn NUL
141terminates the result.

--- 66 unchanged lines hidden ---
134.Pp
135The following copies as many characters from
136.Va input
137to
138.Va buf
139as will fit and
140.Tn NUL
141terminates the result.

--- 66 unchanged lines hidden ---