---
name: "pcap_dump_close"
section: "3pcap"
platform: "linux"
package: "libpcap"
version: "1.11.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux", "macos"]
url: "https://new.carta.tech/pcap_dump_close/3pcap"
---

# pcap\_dump\_close(3pcap)

close a savefile being written to

## NAME

pcap\_dump\_close - close a savefile being written to

## SYNOPSIS

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

**void pcap\_dump\_close(pcap\_dumper\_t \*p);**

## DESCRIPTION

**pcap\_dump\_close**() closes the \`\`savefile'' associated with *p* and deallocates resources.  This means that, for example, if *p* refers to a savefile that was opened with **pcap\_dump\_fopen**(), the stream provided to that routine will be closed unless it is **stdout**.

## SEE ALSO

**pcap**(3PCAP), **pcap\_dump\_open**(3PCAP), **pcap\_dump**(3PCAP)
