mbstrncpy, mbstrncpy_off
Open topic with navigation CAPL Functions » General » Function Overview » mbstrncpy, mbstrncpy_offFunction Syntax
Description
mbstrncpy function copies src to dest. len indicates the number of characters that shall be copied; use -1 to indicate that as much shall be copied into dest as will fit (maximum until the end of src). The function ensures that there is a terminating 0 byte; but in contrast to strncpy, that byte is not counted into len.
mbstrncpy_off overwrites characters in the destination buffer starting at the character offset destOffset.
Parameters
- dest: Destination buffer
- src: Source string
- len: Number of characters to be copied, or -1 to copy as much as possible
- destOffset: Offset in characters into the destination buffer