---
name: "ucwidth"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ucwidth/3alleg4"
---

# ucwidth(3alleg4)

Low level helper function for testing Unicode text data. Allegro game programming library.

## NAME

ucwidth - Low level helper function for testing Unicode text data. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**int ucwidth(int c);**

## DESCRIPTION

Low level helper function for testing Unicode text data.

## RETURN VALUE

Returns the number of bytes that would be occupied by the specified character value, when encoded in the current format.

## SEE ALSO

**uwidth\_max**(3alleg4), **ugetc**(3alleg4), **ugetx**(3alleg4), **usetc**(3alleg4), **uwidth**(3alleg4), **uisok**(3alleg4)
