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

# AL\_ID(3alleg)

Converts four 8 bit values to a packed 32 bit integer ID. Allegro game programming library.

## NAME

AL\_ID - Converts four 8 bit values to a packed 32 bit integer ID. Allegro game programming library.

## SYNOPSIS

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

**Macro AL\_ID(a,b,c,d)**

## DESCRIPTION

This macro can be used to create a packed 32 bit integer from 8 bit characters, on both 32 and 64 bit machines. These can be used for various  things, like custom datafile objects or system IDs. Example:

```
   #define OSTYPE_LINUX       AL_ID('T','U','X',' ')
```

## SEE ALSO

[**DAT\_ID**(3alleg)](/DAT_ID/3alleg.md)
