DOKK / manpages / debian 12 / libpcap0.8-dev / pcap_close.3pcap.en
PCAP_CLOSE(3PCAP) PCAP_CLOSE(3PCAP)

pcap_close - close a capture device or savefile

#include <pcap/pcap.h>
void pcap_close(pcap_t *p);

pcap_close() closes the files associated with p and deallocates resources.

pcap(3PCAP)

3 January 2014