---
name: "zt_location"
section: "3"
platform: "linux"
package: "libzt-doc"
version: "0.3.1-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/zt_location"
---

# zt\_location(3)

description of a specific line in a source file

## NAME

**zt\_location** – description of a specific line in a source file

## SYNOPSIS

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

*typedef* *struct* *zt\_location* *{* *...* *}* *zt\_location;*

## DESCRIPTION

**zt\_location** contains a file name and a line number.

| | | |
| --- | --- | --- |
| **Type** | **Entry** | **Description** |
| *const* *char* *\** | filename | Name of the source file, from \_\_FILE\_\_ |
| *int* | lineno | Number of the line in said file, from \_\_LINE\_\_ |

Use **ZT\_CURRENT\_LOCATION**() macro to obtain a location describing the current file and line number.

## IMPLEMENTATION NOTES

**zt\_location** is used to report the location of failing test checks and assertions.

## SEE ALSO

[ZT\_CURRENT\_LOCATION(3)](/ZT_CURRENT_LOCATION/3.md), [zt\_location\_at(3)](/zt_location_at/3.md)

## HISTORY

**zt\_location** first appeared in libzt 0.1

## AUTHORS

Zygmunt Krynicki ⟨*me@zygoon.pl*⟩
