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

# pcap\_strerror(3pcap)

convert an errno value to a string

## NAME

pcap\_strerror - convert an errno value to a string

## SYNOPSIS

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

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

## DESCRIPTION

**pcap\_strerror**() is provided in case [**strerror**(3)](/strerror/3.md) isn't available.  It returns an error message string corresponding to *error*.

## SEE ALSO

**pcap**(3PCAP)
