---
name: "ucwidth"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/ucwidth"
---

# ucwidth(3alleg)

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**(3alleg)](/uwidth_max/3alleg.md), [**ugetc**(3alleg)](/ugetc/3alleg.md), [**ugetx**(3alleg)](/ugetx/3alleg.md), [**usetc**(3alleg)](/usetc/3alleg.md), [**uwidth**(3alleg)](/uwidth/3alleg.md), [**uisok**(3alleg)](/uisok/3alleg.md)
