---
name: "expackf"
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/expackf/3alleg4"
---

# expackf(3alleg4)

Using custom PACKFILE vtables. Allegro game programming library.

## NAME

expackf - Using custom PACKFILE vtables. Allegro game programming library.

## SYNOPSIS

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

**Example expackf**

## DESCRIPTION

This program demonstrates the use of the packfile functions, with some simple tests.

The first test uses the standard packfile functions to transfer a bitmap file into a block of memory, then reads the bitmap out of the block of memory, using a custom packfile vtable.

The second test reads in a bitmap with another custom packfile vtable, which uses libc's file stream functions.

The third test demonstrates seeking with a custom vtable.

The fourth test reads two bitmaps, and dumps them back into a single file, using a custom vtable again.

Tools

## SEE ALSO

**ASSERT**(3alleg4), **BITMAP**(3alleg4), **END\_OF\_MAIN**(3alleg4), **PACKFILE**(3alleg4), **PACKFILE\_VTABLE**(3alleg4), **SCREEN\_H**(3alleg4), **SCREEN\_W**(3alleg4), **alert**(3alleg4), **allegro\_error**(3alleg4), **allegro\_init**(3alleg4), **allegro\_message**(3alleg4), **blit**(3alleg4), **clear\_bitmap**(3alleg4), **destroy\_bitmap**(3alleg4), **file\_size\_ex**(3alleg4), **font**(3alleg4), **install\_keyboard**(3alleg4), **key**(3alleg4), **load\_bmp\_pf**(3alleg4), **load\_pcx**(3alleg4), **load\_pcx\_pf**(3alleg4), **load\_tga\_pf**(3alleg4), **pack\_fclose**(3alleg4), **pack\_fopen**(3alleg4), **pack\_fopen\_vtable**(3alleg4), **pack\_fread**(3alleg4), **pack\_fseek**(3alleg4), **readkey**(3alleg4), **save\_bmp\_pf**(3alleg4), **save\_tga\_pf**(3alleg4), **screen**(3alleg4), **set\_color\_depth**(3alleg4), **set\_gfx\_mode**(3alleg4), **text\_height**(3alleg4), **textprintf\_centre\_ex**(3alleg4), **textprintf\_ex**(3alleg4)
