strDestination Null-terminated destination string buffer. numberOfElements Size of the destination string buffer. strSource Null-terminated source string buffer.Return ValueZero if successful; an error code on failure.Error ConditionsПроширитабелу ...
这是glibc 2.9中的写法,可以参考
The arguments and return value of _mbscat_s are multibyte-character strings. These three functions behave identically otherwise.If strDestination is a null pointer, or isn't null-terminated, or if strSource is a NULL pointer, or if the destination string is too small, the invalid paramete...
If strDestination is a null pointer, or is not null-terminated, or if strSource is a NULL pointer, or if the destination string is too small, the invalid parameter handler is invoked, as described inParameter Validation. If execution is allowed to continue, these functions return EINVAL and...
If strDestination is a null pointer, or is not null-terminated, or if strSource is a NULL pointer, or if the destination string is too small, the invalid parameter handler is invoked, as described inParameter Validation. If execution is allowed to continue, these functions return EINVAL and...
Null-terminated destination string. strSource Null-terminated source string. Return value Each of these functions returns the destination string (strDestination). No return value is reserved to indicate an error. Remarks Thestrcatfunction appendsstrSourcetostrDestinationand terminates the resulting string...
If strDestination is a null pointer, or is not null-terminated, or if strSource is a NULL pointer, or if the destination string is too small, the invalid parameter handler is invoked, as described inParameter Validation. If execution is allowed to continue, these functions return EINVAL and...
The character src[0] replaces the null terminator at the end of dest. The resulting byte string is null-terminated. The behavior is undefined if the destination array is not large enough for the contents of both src and dest and the terminating null character. The behavior is undefined ...
#include<string.h>#include<memcopy.h>#undef strcat/* Append SRC on the end of DEST. */char...
The result will not be null-terminated if the length of s2 is n or more. strlcpy() copies up to n -1 characters from null-terminated string s2 to s1 . This function takes the full size of the buffer (not just the length) and guarantees to null-terminate the result (as long as ...