std::fgetpos
From cppreference.com
 
 
 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Input/output library 
 
 
 
 
 
 
 
 
 
 
 
 
 Print functions (C++23)
 Buffers
(C++23)
(C++98/26*)
(C++20)
 Streams
 Abstractions
 File I/O
 String I/O
 Array I/O
(C++23)
(C++23)
(C++23)
(C++98/26*)
(C++98/26*)
(C++98/26*)
 Synchronized Output
(C++20)
 Types
 Error category interface
(C++11)
(C++11)
C-style I/O 
 
  
 
 
 
 
 
 
 
 
 
 
 Types and objects
 Functions
 File access
 Direct input/output
 Unformatted input/output
 Formatted input
(C++11)(C++11)(C++11)    
(C++11)(C++11)(C++11)    
 Formatted output
(C++11)
(C++11)    
 File positioning
fgetpos
 Error handling
 Operations on files
Defined in header 
 
 
<cstdio> 
 int fgetpos( std::FILE * stream, std::fpos_t * pos );
 
 
Obtains the file position indicator and the current parse state (if any) for the file stream stream and stores them in the object pointed to by pos. The value stored is only meaningful as the input to std::fsetpos .
Contents
[edit] Parameters
 stream
 -
 file stream to examine
 pos
 -
 pointer to a fpos_t object to store the file position indicator to
[edit] Return value
0 upon success, nonzero value otherwise. Also sets errno on failure.
[edit] Example
 This section is incomplete
Reason: no example
Reason: no example
[edit] See also
C documentation  for fgetpos