Deleted Added
full compact
strcpy.c (77117) strcpy.c (86170)
1/*
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#if defined(LIBC_SCCS) && !defined(lint)
35static char sccsid[] = "@(#)strcpy.c 8.1 (Berkeley) 6/4/93";
36#endif /* LIBC_SCCS and not lint */
1/*
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#if defined(LIBC_SCCS) && !defined(lint)
35static char sccsid[] = "@(#)strcpy.c 8.1 (Berkeley) 6/4/93";
36#endif /* LIBC_SCCS and not lint */
37#ifndef lint
38static const char rcsid[] =
39 "$FreeBSD: head/lib/libc/string/strcpy.c 77117 2001-05-24 08:47:42Z obrien $";
40#endif
41
42#include <sys/cdefs.h>
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/lib/libc/string/strcpy.c 86170 2001-11-07 19:55:16Z obrien $");
39
43#include <string.h>
44
45char *
46strcpy(to, from)
47 register char *to;
48 register const char *from;
49{
50 char *save = to;
51
52 for (; (*to = *from); ++from, ++to);
53 return(save);
54}
40#include <string.h>
41
42char *
43strcpy(to, from)
44 register char *to;
45 register const char *from;
46{
47 char *save = to;
48
49 for (; (*to = *from); ++from, ++to);
50 return(save);
51}