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

# gui\_strlen(3alleg)

Returns the length of a string in pixels. Allegro game programming library.

## NAME

gui\_strlen - Returns the length of a string in pixels. Allegro game programming library.

## SYNOPSIS

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

**int gui\_strlen(const char \*s);**

## DESCRIPTION

Helper function for use by the GUI routines. Returns the length of a  string in pixels, ignoring '&' characters.

## SEE ALSO

[**gui\_textout\_ex**(3alleg)](/gui_textout_ex/3alleg.md)
