NAME

cat_wctoutf - convert a wide character string to UTF-8

SYNOPSIS

#include <cat/catutil.h>

int cat_wctoutf(const wchar_t *input, char **output);

DESCRIPTION

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.

SEE ALSO

cat, catutil, cat_utftowc