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

# lzss\_read(3alleg4)

Decompresses data using LZSS. Allegro game programming library.

## NAME

lzss\_read - Decompresses data using LZSS. Allegro game programming library.

## SYNOPSIS

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

**int lzss\_read(PACKFILE \*file, LZSS\_UNPACK\_DATA \*dat, int s,** **unsigned char \*buf);**

## DESCRIPTION

Unpacks from \`dat' into \`buf', until either EOF is reached or \`s' bytes have been extracted from \`file'.

## RETURN VALUE

Returns the number of bytes added to the buffer \`buf'.

## SEE ALSO

**free\_lzss\_unpack\_data**(3alleg4)
