Graphviz 13.0.0~dev.20250424.1043
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 <stdio.h>
9
11static inline size_t gv_ftell(FILE *stream) {
12 assert(stream != NULL);
13
14#ifdef _WIN32
15 // on Windows, `long` is 32 bits so `ftell` cannot report >2GB file sizes
16 return (size_t)_ftelli64(stream);
17#endif
18
19 return (size_t)ftell(stream);
20}
node NULL
Definition grammar.y:163
static size_t gv_ftell(FILE *stream)
ftell, accounting for platform limitations
Definition gv_ftell.h:11