Skip to content
Snippets Groups Projects
Commit 88a7e14e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Create utf8_strlcpy() which does a "safe" truncated-string copy

(doesn't leave a partial UTF-8 sequence at the end of the destination string).

This calls memcpy() for every char, which may not be performant, but I didn't
(yet) do any profiling. Hence, no premature optimization either.
parent 3b4ec79b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment