.\" Generated by the Allegro makedoc utility .TH register_uformat 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME register_uformat \- Installs handler functions for a new text encoding format. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B void register_uformat(int type, .B int (*u_getc)(const char *s), .B int (*u_getx)(char **s), .B int (*u_setc)(char *s, int c), .B int (*u_width)(const char *s), .B int (*u_cwidth)(int c), .B int (*u_isok)(int c)); .SH DESCRIPTION Installs a set of custom handler functions for a new text encoding format. The `type' is the ID code for your new format, which should be a 4-character string as produced by the AL_ID() macro, and which can later be passed to functions like set_uformat() and uconvert(). The function parameters are handlers that implement the character access for your new type: see below for details of these. .SH SEE ALSO .BR set_uformat (3alleg4), .BR uconvert (3alleg4), .BR ugetc (3alleg4), .BR ugetx (3alleg4), .BR usetc (3alleg4), .BR uwidth (3alleg4), .BR ucwidth (3alleg4), .BR uisok (3alleg4)