PCAP_DUMP_CLOSE(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

PCAP_DUMP_CLOSE(3) πŸŽ€βœ¨

okay so bestie, welcome to the Library Functions Manual β€” this is literally the pcap_dump_close page πŸ’… it's short, it's sweet, it's giving "clean up your savefile era" 🧚


NAME

pcap_dump_close β€” close a savefile being written to 🫢

SYNOPSIS

#include <pcap/pcap.h>

void pcap_dump_close(pcap_dumper_t *p);

DESCRIPTION

okay so pcap_dump_close() closes the β€œsavefile” associated with p and deallocates resources πŸ’– that's the whole vibe.

like, for example: if p refers to a savefile that was opened with pcap_dump_fopen(), then the stream provided to that routine will be closed β€” unless it is stdout πŸ‘€ periodt.

bestie note: stdout is the exception here β€” it stays open 🌸

SEE ALSO


and that's the page, bestie 🌈 no cap. this was the PCAP_DUMP_CLOSE(3) page from the Library Functions Manual, dated 12 October 2024 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from