Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/lib/libc/aarch64/string/strcat.c
48266 views
1
/*-
2
* SPDX-License-Identifier: BSD-2-Clause
3
*
4
* Copyright (c) 2024 Getz Mikalsen <[email protected]>
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
22