Lhasa
Lhasa LZH file library

Introduction

Lhasa is a library for parsing LHA (.lzh) archive files. Included with the library is a Unix command line tool that is an interface compatible replacement for the non-free Unix LHA tool.

The source code is licensed under the ISC license, a simplified version of the MIT/X11 license which is functionally identical, and compatible with the GNU GPL. As such, it may be reused in any project, either proprietary or open source.

Main interfaces

  • lha_input_stream.h - abstracts the process of reading data from an LZH file; convenience functions are provided for reading data from a normal file or a Standard C FILE pointer.
  • lha_reader.h - routines to decode ands extract the contents of an LZH file from a stream.
  • lha_file_header.h - structure representing the decoded contents of an LZH file header.

Additional interfaces