Strcpy_s

Bạn đang xem: Strcpy_s

Functions | |
EXPORT errno_t | strcpy_s (char *restrict dest, rsize_t dmax, const char *restrict src) |
The strcpy_s function copies the string pointed khổng lồ by src (including the terminating null character) into the array pointed khổng lồ by dest. More... | |
Function Documentation
◆strcpy_s()
Xem thêm: Hướng Dẫn Cách Xóa Tài Khoản Instagram Phụ Trên Điện Thoại Đơn Giản Nhất
EXPORT errno_t strcpy_s | ( | char *restrict | dest, |
rsize_t | dmax, | ||
const char *restrict | src | ||
) |
Xem thêm: Bí Mật Cách Làm Lạp Xưởng Không Cần Rượu Mai Quế Lộ, Bí Mật Cách Làm Lạp Xưởng Không Cần Phơi Nắng
The strcpy_s function copies the string pointed khổng lồ by src (including the terminating null character) into the array pointed to by dest.
With SAFECLIB_STR_NULL_SLACK defined all elements following the terminating null character (if any) written by strcpy_s in the array of dmax characters pointed khổng lồ by dest are nulled when strcpy_s returns.
RemarksSPECIFIED INISO/IEC TR 24731, Programming languages, environments & system software interfaces, Extensions to lớn the C Library, Part I: Bounds-checking interfacesParametersdest | pointer to lớn string that will be replaced by src. | |
dmax | restricted maximum length of dest | |
src | pointer to lớn the string that will be copied lớn dest |
EOK | when successful operation, the characters in src were copied into dest & the result is null terminated. |
ESNULLP | when dest or src is a NULL pointer |
ESZEROL | when dmax = 0 |
ESLEMAX | when dmax > RSIZE_MAX_STR |
ESOVRLP | when strings overlap |
ESNOSPC | when dest See alsostrcat_s(), strncat_s(), strncpy_s() cf68 |