Graphviz
14.1.6~dev.20260414.1102
Loading...
Searching...
No Matches
gv_ftell.h
Go to the documentation of this file.
1
3
4
#pragma once
5
6
#include <assert.h>
7
#include <stddef.h>
8
#include <stdint.h>
9
#include <stdio.h>
10
12
static
inline
int64_t
gv_ftell
(FILE *stream) {
13
assert(stream !=
NULL
);
14
15
#ifdef _WIN32
16
// on Windows, `long` is 32 bits so `ftell` cannot report >2GB file sizes
17
return
_ftelli64(stream);
18
#endif
19
20
return
ftell(stream);
21
}
NULL
node NULL
Definition
grammar.y:181
gv_ftell
static int64_t gv_ftell(FILE *stream)
ftell, accounting for platform limitations
Definition
gv_ftell.h:12
lib
util
gv_ftell.h
Generated by
1.9.8