ARCHIVE_READ_NEW(3)

πŸ“¦
version 3.8.11 Β· 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, freebsd 14.5, freebsd 15.1, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

archive_read_new β€” bestie, this is the function for reading streaming archives πŸ’–


πŸ“š LIBRARY

Streaming Archive Library (libarchive, -larchive) πŸŽ€


🌸 SYNOPSIS 🌸

#include <archive.h>

struct archive *
archive_read_new(void);

πŸ’… DESCRIPTION πŸ’…

okay so. archive_read_new allocates and initializes a struct archive object, and this one is specifically built for reading from an archive. it's giving "setup first, drama later." ✨

and if something goes wrong? NULL is returned. no cap, that's your error signal, bestie. 😭

if you want the whole lore on what a struct archive object actually is, the overview manual page for libarchive(3) has you covered. go read it, it's iconic πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, babe 🫢 this one came from Debian, dated February 2, 2012 β€” vintage but still absolutely slaying πŸ’œ

πŸ“¦ where this page comes from