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

# pcap\_lib\_version(3pcap)

get the version information for libpcap

## NAME

pcap\_lib\_version - get the version information for libpcap

## SYNOPSIS

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

**const char \*pcap\_lib\_version(void);**

## DESCRIPTION

**pcap\_lib\_version**() returns a pointer to a string giving information about the version of the libpcap library being used; note that it contains more information than just a version number.

## SEE ALSO

**pcap**(3PCAP)
