Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

From: Bert Wesarg (wesarg_at_[hidden])
Date: 2007-02-26 15:54:17


I can only speak for a 3 year old linux system but I read evenly the wiki
page and I wonder if
someone tried this code. On my system the PRId32 is defined as "d" for
example. so to use this you need to write something like this:

printf("foo: %" PRIu32 ", bar: %ld\n", foo, bar);
note this extra '%'.

on the other hand printf have an extra length specifier for size_t, its
'z', so a minimal size_t printf conversion is "%zu".

Bert Wesarg

BTW: are there any plans to provide mpi datatypes for these stdint.h types
like {,u}int{8,16,32,64,max,ptr}_t?