mbsubstr_cpy, mbsubstr_cpy_off
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
Description
mbsubstr_cpy copies a substring of 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 substr_cpy/substr_cpy_off, that byte is not counted into len.
mbsubstr_cpy_off overwrites characters in the destination buffer starting at the character offset destOffset.
Parameters
- dest: Destination buffer
- src: Source string
- srcStart: Start index in characters in src of substring
- len: Number of characters to be copied, or -1 to copy as much as possible
- destOffset: Offset in characters into the destination buffer