#if 0 #include #include /** copy string **/ errno_t strcpy_s(char * restrict s1, rsize_t s1max, const char * restrict s2) { __C_EXT(1, 201112L); __ASSERT_NONNULL(s1); __ASSERT_NONNULL(s2); __ASSERT_NOOVERLAP(s1, s2, strlen(s2)); return strncpy(s1, s2, strlen(s2)); } /*** The fn(strcpy) function copies the string at arg(s2) to arg(s1), up to and including the terminating char(\0). ***/ /* UNSPECIFIED: - */ /* UNDEFINED: if arg(s1) and arg(s2) overlap */ /* IMPLEMENTATION: - */ /* LOCALE: - */ /* RETURN: the value of arg(s1) */ /* CEXT1(201112) */ #endif