• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <string.h>
2 #ifdef LOSCFG_KERNEL_LMS
__strncat(char * restrict d,const char * restrict s,size_t n)3 __attribute__((no_sanitize_address)) char *__strncat(char *restrict d, const char *restrict s, size_t n)
4 #else
5 char *strncat(char *restrict d, const char *restrict s, size_t n)
6 #endif
7 {
8 	char *a = d;
9 	d += strlen(d);
10 	while (n && *s) n--, *d++ = *s++;
11 	*d++ = 0;
12 	return a;
13 }
14