---
name: "th_print_long_ls"
section: "3"
platform: "linux"
package: "libtar"
version: "1.2.20-8"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/th_print_long_ls"
---

# th\_print\_long\_ls(3)

print out information about a tar file header

## NAME

th\_print, th\_print\_long\_ls - print out information about a tar file header

## SYNOPSIS

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

**void th\_print\_long\_ls(TAR \****t***);**

**void th\_print(TAR \****t***);**

## VERSION

This man page documents version 1.2 of **libtar**.

## DESCRIPTION

The **th\_print\_long\_ls**() function prints a line to *stdout* which describes the file pointed to by the current file header associated with the *TAR* handle *t*.  The output is similar to that of "ls -l".

The **th\_print**() function prints the value of each field of the current file header associated with the *TAR* handle *t* to *stdout*.  This is mainly used for debugging purposes.

## SEE ALSO

[**tar\_open**(3)](/tar_open/3.md), [**th\_read**(3)](/th_read/3.md)
