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

# dwarf\_errno(3)

retrieve the error number corresponding to a Dwarf\_Error instance

## NAME

**dwarf\_errno** – retrieve the error number corresponding to a *Dwarf\_Error* instance

## LIBRARY

library “libdwarf”

## SYNOPSIS

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

*int*\

**dwarf\_errno**(*Dwarf\_Error err*);

## DESCRIPTION

Function **dwarf\_errno**() returns the error number associated with a *Dwarf\_Error* instance.

Argument *err* should be a valid handle to a *Dwarf\_Error* instance.

## RETURN VALUES

Function **dwarf\_errno**() returns an integral value.

## SEE ALSO

[dwarf(3)](/dwarf/3.md), [dwarf\_errmsg(3)](/dwarf_errmsg/3.md)
