NAME

cat_needutf - check if an ASCII string is valid UTF-8 format

SYNOPSIS

#include <cat/catutil.h>

char *cat_needutf(const char *ascii);

DESCRIPTION

Checks if ASCII string ascii needs further processing in order to have valid UTF-8 format, that is, containing any characters with the most significant bit set.

RETURN VALUES

Returns NULL if not, or a pointer to the first ``eight-bit'' character if it does.

SEE ALSO

cat, catutil