On Wed, 9 Mar 2016, Lisandro Dalcin wrote: > On 9 March 2016 at 23:00, Satish Balay <[email protected]> wrote: > > On Wed, 9 Mar 2016, Lisandro Dalcin wrote: > > > >> On 9 March 2016 at 22:51, Satish Balay <[email protected]> wrote: > >> > Well the following works.. > >> > >> OK, but that's a small int, and you are little-endian, right? Could > >> you try the following? > >> > >> char c[] = "9223372036854775807" > > > > sbalay@ps3 ~/junk > > $ ./te.exe > > 9223372036854775807 > > > > Great! What would be the right #define guard for Windows builds?
#if defined(PETSC_HAVE_STDINT_H) scanf(format for int64_t); #elif (PETSC_SIZEOF_LONG_LONG == 8) scanf(format for long long); #elif defined(PETSC_HAVE___INT64) scanf(format for __int64 - aka windows); #endif Satish
