---
name: "pack_fclose_chunk"
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_fclose_chunk"
---

# pack\_fclose\_chunk(3alleg)

Closes a previously opened sub-chunk. Allegro game programming library.

## NAME

pack\_fclose\_chunk - Closes a previously opened sub-chunk. Allegro game programming library.

## SYNOPSIS

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

**PACKFILE \*pack\_fclose\_chunk(PACKFILE \*f);**

## DESCRIPTION

Closes a sub-chunk of a file, previously obtained by calling  pack\_fopen\_chunk().

## RETURN VALUE

Returns a pointer to the parent of the sub-chunk you just closed. Returns NULL if there was some error (eg. you tried to close a PACKFILE which wasn't sub-chunked).

## SEE ALSO

[**pack\_fopen\_chunk**(3alleg)](/pack_fopen_chunk/3alleg.md)
