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

# pack\_fclose\_chunk(3alleg4)

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**(3alleg4)
