---
name: "ugetc"
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/ugetc"
---

# ugetc(3alleg)

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

## NAME

ugetc - Low level helper function for reading Unicode text data. Allegro game programming library.

## SYNOPSIS

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

**int ugetc(const char \*s);**

## DESCRIPTION

Low level helper function for reading Unicode text data. Example:

```
   int first_unicode_letter = ugetc(text_string);
```

## RETURN VALUE

Returns the character pointed to by \`s' in the current encoding format.

## SEE ALSO

[**ugetx**(3alleg)](/ugetx/3alleg.md), [**usetc**(3alleg)](/usetc/3alleg.md), [**uwidth**(3alleg)](/uwidth/3alleg.md), [**ucwidth**(3alleg)](/ucwidth/3alleg.md), [**uisok**(3alleg)](/uisok/3alleg.md)
