/* exset.c - Sample code for uniset.
Replace all characters in a string.
*/
#include <nunicode.h>
#include <assert.h>
void main(void)
{
unicode s1[20];
punicode ret;
unicode fill = ’.’;
unicpy(s1, L"abcd");
/* Fill stops when it hits a NULL in the destination. */
ret = uniset(s1, fill);
assert (unicmp(s1, L"....") == 0);
assert (ret == s1);
}