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