Fills a string with a specified character, for a specified length.
#include <utf8.h> utf8_t *utf8nset ( utf8_t *base, utf8_t *ch, size_t n);
(OUT) Points to the string to fill.
(IN) Specifies the character to copy.
(IN) Specifies the number of times to copy the fill character.
Returns a pointer to the base string.
The utf8nset function fills the base string with the value of the ch parameter, for the number of characters specified by n.
If the base string is longer than n characters, ch is copied to only n characters of the base string.
If the base string is shorter than n characters, ch is copied to the base string and beyond, which can result in memory corruption.