---
name: "archive_read_new"
section: "3"
platform: "macos"
package: "libarchive"
version: "167.120.3"
release: "macOS 26.5"
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 Tn struct archive object suitable for reading from an archive. **NULL** is returned on error.

A complete description of the Tn 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)
