cat_wctoutf - convert a wide character string to UTF-8
#include <cat/catutil.h>
int cat_wctoutf(const wchar_t *input, char **output);
This function converts wide character string input to utf-8, allocates space to store the result, and stores the address in
the output argument. The result should be deallocated with a call to free().
Returns the number of bytes in the result, or a negative code on error.
cat, catutil, cat_utftowc