---
name: "pcap_lib_version"
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_lib_version"
---

# pcap\_lib\_version(3)

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**(3)](/pcap/3.md)
