CStr StrNCpy(dst, src, n);
Copies the C string src to the C string dst. If the source string is less than n characters, the function pads the destination with NULL characters. If the source string is greater than n, only n characters are copied. This function assumes dst is large enough to contain src.
Name | Type | Description |
---|---|---|
dst | CStr | Pointer to a C string. |
src | CStr | Pointer to a C string. |
n | size_t | Maximum number of characters you want to copy. |
A copy of the destination C string pointer.