CS计算机代考程序代写 // COMP1521 21T2 … final exam, question 5

// COMP1521 21T2 … final exam, question 5

#include
#include
#include

void
print_utf8_count (FILE *file)
{
unsigned long amount_1_byte = 0;
unsigned long amount_2_byte = 0;
unsigned long amount_3_byte = 0;
unsigned long amount_4_byte = 0;

// TODO

printf(“1-byte UTF-8 characters: %lu\n”, amount_1_byte);
printf(“2-byte UTF-8 characters: %lu\n”, amount_2_byte);
printf(“3-byte UTF-8 characters: %lu\n”, amount_3_byte);
printf(“4-byte UTF-8 characters: %lu\n”, amount_4_byte);
}