commit | baf48fbe2e099a70b2f177e76d06a48c562d029f | [log] [tgz] |
---|---|---|
author | Emil Gydesen <emil.gydesen@nordicsemi.no> | Thu Dec 30 13:38:40 2021 +0100 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Tue Jan 11 11:50:15 2022 +0100 |
tree | 63cc87008352f4e30af404ee3fc1ca30937fc23a | |
parent | 5cb72d21930bd23eac67f4c2888c688c3c5508d0 [diff] |
zephyr: Add UTF-8 truncating strlcpy variant Add a function to copy a UTF-8 encoded string that ensure correct truncation of the string if the source is larger than the destination, as well as ensuring that the resulting destination string is NULL-terminated. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>