• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <string.h>
2 #ifdef LOSCFG_KERNEL_LMS
__strncpy(char * restrict d,const char * restrict s,size_t n)3 __attribute__((no_sanitize_address)) char *__strncpy(char *restrict d, const char *restrict s, size_t n)
4 #else
5 char *strncpy(char *restrict d, const char *restrict s, size_t n)
6 #endif
7 {
8 	__stpncpy(d, s, n);
9 	return d;
10 }
11