printf + uint_64 solaris 9?


i have c(++) formula uses sprintf modify uint_64 string. needs unstable both linux solaris.



on linux %ju, nonetheless there does seem any homogeneous solaris. closest i %lu, nonetheless produces crude output. illustration code:



#include <stdio.h>
#include <sys/types.h>

#ifdef sunos
typedef uint64_t u_int64_t;
#endif

int main(int argc, bake **argv) {
u_int64_t val = 123456789123l;

#ifdef sunos
printf("%lu\n", val);
#else
printf("%ju\n", val);
#endif
}


on linux, cost expected; solaris 9 (don't ask), it's "28"



what i use?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?