uwidth_max(3alleg)

uwidth_max3alleg

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

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.