touchgfx::Unicode::strncpy() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

touchgfx::Unicode::strncpy() method

@fn static uint16_t Unicode::strncpy(UnicodeChar* RESTRICT dst, const UnicodeChar* RESTRICT src, uint16_t maxchars); Copy a string to a destination buffer, UnicodeChar to UnicodeChar version. Copy a string to a destination buffer, UnicodeChar to UnicodeChar version. Stops if it encounters a zero-termination, in which case the zero-termination is included in the destination string. Otherwise copies maxchars. @warning If there is no null-termination among the first n UnicodeChars of src, the string placed in destination will NOT be zero-terminated!

Syntax

static uint16_t strncpy(UnicodeChar* RESTRICT dst,     const UnicodeChar* RESTRICT src,     uint16_t maxchars);

Arguments

dst

src

maxchars

Maximum number of characters to copy.

Return value

The number of characters copied (excluding zero-termination if encountered)

References

LocationText
Unicode.hpp:88
static uint16_t strncpy(UnicodeChar* RESTRICT dst, const UnicodeChar* RESTRICT src, uint16_t maxchars);
Unicode.hpp:108
static uint16_t strncpy(UnicodeChar* RESTRICT dst, const char* RESTRICT src, uint16_t maxchars);

Type Use

Type of touchgfx::Unicode::strncpy()
touchgfx::Unicode::strncpy()
uint16_t
all items filtered out