DOKK / manpages / debian 12 / libtickit-dev / tickit_utf8_seqlen.3.en
TICKIT_UTF8_SEQLEN(3) Library Functions Manual TICKIT_UTF8_SEQLEN(3)

tickit_utf8_seqlen - determine the length of a UTF-8 codepoint encoding

#include <tickit.h>

int tickit_utf8_seqlen(long codepoint);

Link with -ltickit.

tickit_utf8_seqlen() determines the number of bytes required in the UTF-8 encoding of the given codepoint and returns it.

tickit_utf8_seqlen() returns a byte count.

tickit_utf8_put(3), tickit(7)