---
name: "pcap_statustostr"
section: "3pcap"
platform: "macos"
package: "libpcap"
version: "146"
release: "macOS 26.5"
platforms: ["linux", "macos"]
url: "https://new.carta.tech/pcap_statustostr/3pcap"
---

# pcap\_statustostr(3pcap)

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**(3PCAP)
