xref: /freebsd/lib/libc/aarch64/string/strcat.c (revision dd21556857e8d40f66bf5ad54754d9d52669ebf7)
1 /*-
2  * SPDX-License-Identifier: BSD-2-Clause
3  *
4  * Copyright (c) 2024 Getz Mikalsen <getz@FreeBSD.org>
5 */
6 
7 #include <string.h>
8 
9 #undef strcat	/* _FORTIFY_SOURCE */
10 
11 char *
12 strcat(char * __restrict s, const char * __restrict append)
13 {
14 	char *save = s;
15 
16 	/* call into SIMD optimized functions */
17 	stpcpy(s + strlen(s), append);
18 
19 	return(save);
20 }
21