Libarchive is a programming library that can create and read several different streaming archive formats, including most popular tar variants, several cpio formats, 7zip and rar. It can also write shar archives.

WWW: https://libarchive.org/
