uwidth_max(3alleg4)

uwidth_max3alleg4

Number of bytes a character can occupy. allegro game programming library.

Usage

#include <allegro.h>

int uwidth_max(int type);

Overview

Low level helper function for working with Unicode text data. Returns the largest number of bytes that one character can occupy in the given encoding format. Pass U_CURRENT to represent the current format. Example:

   char *temp_buffer = malloc(256 * uwidth_max(U_UTF8));

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.