---
name: "archive_read_new"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["linux", "freebsd", "macos"]
url: "https://new.carta.tech/archive_read_new"
---

# archive\_read\_new(3)

functions for reading streaming archives

## NAME

**archive\_read\_new** – functions for reading streaming archives

## LIBRARY

Streaming Archive Library (libarchive, -larchive)

## SYNOPSIS

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

*struct* *archive* *\**\

**archive\_read\_new**(*void*);

## DESCRIPTION

Allocates and initializes a struct archive object suitable for reading from an archive. NULL is returned on error.

A complete description of the struct archive object can be found in the overview manual page for [libarchive(3)](/libarchive/3.md).

## SEE ALSO

[tar(1)](/tar/1.md), [archive\_read\_data(3)](/archive_read_data/3.md), [archive\_read\_filter(3)](/archive_read_filter/3.md), [archive\_read\_format(3)](/archive_read_format/3.md), [archive\_read\_set\_options(3)](/archive_read_set_options/3.md), [archive\_util(3)](/archive_util/3.md), [libarchive(3)](/libarchive/3.md), [tar(5)](/tar/5.md)
