1*075fb85fSLeandro Lupori /*- 2*075fb85fSLeandro Lupori * Copyright (c) 2019 Leandro Lupori 3*075fb85fSLeandro Lupori * 4*075fb85fSLeandro Lupori * Redistribution and use in source and binary forms, with or without 5*075fb85fSLeandro Lupori * modification, are permitted provided that the following conditions 6*075fb85fSLeandro Lupori * are met: 7*075fb85fSLeandro Lupori * 1. Redistributions of source code must retain the above copyright 8*075fb85fSLeandro Lupori * notice, this list of conditions and the following disclaimer. 9*075fb85fSLeandro Lupori * 2. Redistributions in binary form must reproduce the above copyright 10*075fb85fSLeandro Lupori * notice, this list of conditions and the following disclaimer in the 11*075fb85fSLeandro Lupori * documentation and/or other materials provided with the distribution. 12*075fb85fSLeandro Lupori * 3. Neither the name of the author nor the names of its contributors may 13*075fb85fSLeandro Lupori * be used to endorse or promote products derived from this software 14*075fb85fSLeandro Lupori * 15*075fb85fSLeandro Lupori * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16*075fb85fSLeandro Lupori * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17*075fb85fSLeandro Lupori * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18*075fb85fSLeandro Lupori * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19*075fb85fSLeandro Lupori * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20*075fb85fSLeandro Lupori * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21*075fb85fSLeandro Lupori * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22*075fb85fSLeandro Lupori * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23*075fb85fSLeandro Lupori * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24*075fb85fSLeandro Lupori * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25*075fb85fSLeandro Lupori * SUCH DAMAGE. 26*075fb85fSLeandro Lupori */ 27*075fb85fSLeandro Lupori 28*075fb85fSLeandro Lupori 29*075fb85fSLeandro Lupori #define WEAK_STRCPY 30*075fb85fSLeandro Lupori #include "../../string/strcpy.c" 31