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

# lzss\_read(3alleg)

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**(3alleg)](/free_lzss_unpack_data/3alleg.md)
