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

# pack\_fopen\_vtable(3alleg)

Allegro game programming library.

## NAME

pack\_fopen\_vtable - Allegro game programming library.

## SYNOPSIS

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

**PACKFILE \*pack\_fopen\_vtable(const PACKFILE\_VTABLE \*vtable, void \*userdata);**

## DESCRIPTION

Creates a new packfile structure that uses the functions specified in the vtable instead of the standard functions. The data pointer by \`vtable' and \`userdata' must remain available for the lifetime of the created packfile.

While the created packfile structure can be used with other Allegro functions, there are two limitations. First, opening chunks using pack\_fopen\_chunk() on top of the returned packfile is not possible at this time. And packfile\_password() does not have any effect on packfiles opened with pack\_fopen\_vtable().

## RETURN VALUE

On success, it returns a pointer to a PACKFILE structure, and on error it returns NULL and stores an error code in \`errno'.

## SEE ALSO

[**pack\_fopen**(3alleg)](/pack_fopen/3alleg.md), [**pack\_fopen\_chunk**(3alleg)](/pack_fopen_chunk/3alleg.md), [**packfile\_password**(3alleg)](/packfile_password/3alleg.md), [**expackf**(3alleg)](/expackf/3alleg.md)
