1 2 3 4 5 6 7 8 9 10 11 12
#include <limits.h> #include <stdio.h> #include <stdlib.h> #define PROGRAM_NAME "wtf8" #define BYTE_SEP '-' #define CHAR_SEP ' ' int is_utf8_cont(unsigned char); void print_octets(FILE *, char *); void print_characters(FILE *, char *);