.\" Generated by the Allegro makedoc utility .TH get_uformat 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME get_uformat \- Finds out what text encoding format is currently selected. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B int get_uformat(void); .SH 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: .nf switch(get_uformat()) { case U_ASCII: do_something(); break; case U_UTF8: do_something_else(); break; ... } .fi .SH "RETURN VALUE" Returns the currently selected text encoding format. See the documentation of set_uformat() for a list of encoding formats. .SH SEE ALSO .BR set_uformat (3alleg4)