get_uformat (3) - Linux Manuals
get_uformat: Finds out what text encoding format is currently selected. Allegro game programming library.
NAME
get_uformat - Finds out what text encoding format is currently selected. Allegro game programming library.SYNOPSIS
#include <allegro.h>
DESCRIPTION
Finds out what text encoding format is currently selected. This function is probably useful only if you are writing an Allegro addon dealing with text strings and you use a different codepath for each possible format. Example:
switch(get_uformat()) { case U_ASCII: do_something(); break; case U_UTF8: do_something_else(); break; ... }