1d915a14eSPedro F. Giffuni /*-
24d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause
3d915a14eSPedro F. Giffuni *
4c03b5ad6SGeorge V. Neville-Neil * Copyright 2011 George V. Neville-Neil. All rights reserved.
5c03b5ad6SGeorge V. Neville-Neil *
6c03b5ad6SGeorge V. Neville-Neil * The compilation of software known as FreeBSD is distributed under the
7c03b5ad6SGeorge V. Neville-Neil * following terms:
8c03b5ad6SGeorge V. Neville-Neil * Redistribution and use in source and binary forms, with or without
9c03b5ad6SGeorge V. Neville-Neil * modification, are permitted provided that the following conditions
10c03b5ad6SGeorge V. Neville-Neil * are met:
11c03b5ad6SGeorge V. Neville-Neil * 1. Redistributions of source code must retain the above copyright
12c03b5ad6SGeorge V. Neville-Neil * notice, this list of conditions and the following disclaimer.
13c03b5ad6SGeorge V. Neville-Neil * 2. Redistributions in binary form must reproduce the above copyright
14c03b5ad6SGeorge V. Neville-Neil * notice, this list of conditions and the following disclaimer in the
15c03b5ad6SGeorge V. Neville-Neil * documentation and/or other materials provided with the distribution.
16c03b5ad6SGeorge V. Neville-Neil *
17c03b5ad6SGeorge V. Neville-Neil * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18c03b5ad6SGeorge V. Neville-Neil * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19c03b5ad6SGeorge V. Neville-Neil * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20c03b5ad6SGeorge V. Neville-Neil * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21c03b5ad6SGeorge V. Neville-Neil * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22c03b5ad6SGeorge V. Neville-Neil * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23c03b5ad6SGeorge V. Neville-Neil * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24c03b5ad6SGeorge V. Neville-Neil * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25c03b5ad6SGeorge V. Neville-Neil * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26c03b5ad6SGeorge V. Neville-Neil * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27c03b5ad6SGeorge V. Neville-Neil * SUCH DAMAGE.
28c03b5ad6SGeorge V. Neville-Neil */
29c03b5ad6SGeorge V. Neville-Neil
30c03b5ad6SGeorge V. Neville-Neil char *__stpcpy(char * __restrict, const char * __restrict);
31c03b5ad6SGeorge V. Neville-Neil
32c03b5ad6SGeorge V. Neville-Neil char *
strcpy(char * __restrict to,const char * __restrict from)33c03b5ad6SGeorge V. Neville-Neil strcpy(char * __restrict to, const char * __restrict from)
34c03b5ad6SGeorge V. Neville-Neil {
35c03b5ad6SGeorge V. Neville-Neil __stpcpy(to, from);
36c03b5ad6SGeorge V. Neville-Neil return(to);
37c03b5ad6SGeorge V. Neville-Neil }
38