Sets the specified number of characters in a string to a given character.
#include <unilib.h>
unicode_t *uninset (
unicode_t *base,
unicode_t ch
size_t n);
(IN/OUT) Points to the array for the string to filled with the specified character.
(IN) Specifies the character to be copied.
(IN) Specifies the number of times to copy the character into the string.
Returns a pointer to the tgt parameter.
The uninset function fills the tgt string with the value of the ch parameter, with the number of characters specified in the n parameter. When the value of n is greater than the length of the string, the entire string is filled. Otherwise, that number of characters at the start of the string is set to the ch character.
The uninset function corresponds to the strnset function.