1PCAP_DUMP_FTELL(3PCAP)                                  PCAP_DUMP_FTELL(3PCAP)
2
3
4

NAME

6       pcap_dump_ftell,  pcap_dump_ftell64 - get the current file offset for a
7       savefile being written
8

SYNOPSIS

10       #include <pcap/pcap.h>
11
12       long pcap_dump_ftell(pcap_dumper_t *p);
13       int64_t pcap_dump_ftell64(pcap_dumper_t *p);
14

DESCRIPTION

16       pcap_dump_ftell() returns the current file  position  for  the  ``save‐
17       file'',    representing    the    number    of    bytes    written   by
18       pcap_dump_open(3PCAP) and pcap_dump(3PCAP).  PCAP_ERROR is returned  on
19       error.  If the current file position does not fit in a long, it will be
20       truncated; this can happen on 32-bit UNIX-like systems with large  file
21       support  and  on Windows.  pcap_dump_ftell64() returns the current file
22       position in a int64_t, so if file offsets that don't fit in a long  but
23       that  fit  in a int64_t are supported, this will return the file offset
24       without truncation.  PCAP_ERROR is returned on error.
25

SEE ALSO

27       pcap(3PCAP)
28
29
30
31                                 25 July 2018           PCAP_DUMP_FTELL(3PCAP)
Impressum