touchgfx::Unicode::snprintf() method
@fn static UnicodeChar* Unicode::snprintf(UnicodeChar* dst, uint16_t dstSize, const UnicodeChar* format, ...); Formats a string and adds null termination. Formats a string and adds null termination. The string is formatted like when printf is used. Support formats: \%c (element type: char), \%s (element type: zero-terminated UnicodeChar list), \%u, \%i, \%d, \%o, \%x (all these are integers formatted in radix 10, 10, 10, 8, 16 respectively). The number formats (\%u, \%i, \%d, \%o and \%x) all support \%[0][length]X to specify the size of the generated field (length) and whether the number should be prefixed with zeros (or blanks). @see snprintfFloat, snprintfFloats
Arguments
dst
dstSize
Size of the dst buffer measured by number of UnicodeChars the buffer can hold.
Return value
pointer to the first element in the buffer where the formatted string is placed.
Examples
touchgfx::Unicode::snprintf() is referenced by
4 libraries and example projects.
Type of touchgfx::Unicode::snprintf()
touchgfx::Unicode::snprintf()