<div dir="ltr">Hi,<div><br></div><div>In Pcap.Net (<a href="http://pcapdot.net">http://pcapdot.net</a>), I'm using pcap_fopen_offline() to open files.</div><div>Since this function assumes the FILE* argument it gets is already open, does calling pcap_close() on its output also closes that FILE* or do I need to close it separately.</div>
<div>At first, I thought I need to close it separately, but from some debugging it seems to me that pcap_fopen_offline() actually takes ownership over the FILE* so pcap_close() will close it.</div><div><br></div><div>I just want to verify that I understand the behavior correctly.</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Boaz.</div></div>