NAME

cat_utftowc - convert a UTF-8 string to wide chararacters

SYNOPSIS

#include <cat/catutil.h>

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

DESCRIPTION

This function converts the input string to wide characters, allocates space to store the result, and stores the address in the output argument. output should be deallocated with free().

Returns the number of wide characters in the result, or a negative code on error.

SEE ALSO

cat, catutil, cat_wctoutf