int64_t and printf
Ben Laurie
ben at links.org
Sun Jun 5 18:13:16 UTC 2011
So, for example int64_t has no printf modifier I am aware of. Likewise
its many friends.
In the past I've handled this by having a define somewhere along the
lines of...
#if <something>
# define INT_64_T_FMT "%ld"
#else
# define INT_64_T_FMT "%lld"
#endif
but I have no idea where to put such a thing in FreeBSD. Opinions? Also,
I guess I'd really need to do a modifier rather than a format, for full
generality.
--
http://www.apache-ssl.org/ben.html http://www.links.org/
"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff
More information about the freebsd-hackers
mailing list