stpcpy.c (1829d5da5355930d5cfa8ec8add8ff47dc0bebab) stpcpy.c (8269e8c887accbffa1e193394fc22fde8d0973e3)
1/*
2 * Copyright (c) 1999
3 * David E. O'Brien
4 * Copyright (c) 1988, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

33static char sccsid[] = "@(#)strcpy.c 8.1 (Berkeley) 6/4/93";
34#endif /* LIBC_SCCS and not lint */
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD$");
37
38#include <string.h>
39
40char *
1/*
2 * Copyright (c) 1999
3 * David E. O'Brien
4 * Copyright (c) 1988, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

33static char sccsid[] = "@(#)strcpy.c 8.1 (Berkeley) 6/4/93";
34#endif /* LIBC_SCCS and not lint */
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD$");
37
38#include <string.h>
39
40char *
41stpcpy(char * __restrict to, const char * __restrict from)
41stpcpy(char * to, const char * from)
42{
43
44 for (; (*to = *from); ++from, ++to);
45 return(to);
46}
42{
43
44 for (; (*to = *from); ++from, ++to);
45 return(to);
46}