Constant
GLibGINT64_FORMAT
Description
This is the platform dependent conversion specifier for scanning
and printing values of type #gint64. See also G_GINT16_FORMAT
.
Some platforms do not support scanning and printing 64-bit integers,
even though the types are supported. On such platforms G_GINT64_FORMAT
is not defined. Note that scanf()
may not support 64-bit integers, even
if G_GINT64_FORMAT
is defined. Due to its weak error handling, scanf()
is not recommended for parsing anyway; consider using g_ascii_strtoull()
instead.
This is not necessarily the correct format for printing and scanning
int64_t
values, even though the in-memory representation is the same.
Standard C macros like PRId64
and SCNd64
should be used for int64_t
.