/* excpy.c - Sample code for unicpy function.
A bug in earlier versions of the library caused unicpy to return a
pointer to the end of the destination string instead of the beginning.
*/
#include <nunicode.h>
#include <assert.h>
void main(void)
{
unicode str[11];
punicode ret;
ret = unicpy(str, L"New string");
assert(unicmp(str, L"New string") == 0);
assert(ret==str);
}