---
name: "pcap_statustostr"
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/pcap_statustostr"
---

# pcap\_statustostr(3)

convert a PCAP\_ERROR\_ or PCAP\_WARNING\_ value to a string

## NAME

pcap\_statustostr - convert a PCAP\_ERROR\_ or PCAP\_WARNING\_ value to a string

## SYNOPSIS

```
#include <pcap/pcap.h>
```

**const char \*pcap\_statustostr(int error);**

## DESCRIPTION

**pcap\_statustostr**() converts a **PCAP\_ERROR\_** or **PCAP\_WARNING\_** value returned by a libpcap routine to an error string.

## SEE ALSO

[**pcap**(3)](/pcap/3.md)
