[MPICH] valuelen in MPI_Info_get()

Wei-keng Liao wkliao at ece.northwestern.edu
Thu Oct 12 15:05:02 CDT 2006


In MPI 2.0, section 4.10, function MPI_Info_get(), the argument valuelen 
is defined as "...  In C, valuelen should be one less than the amount of 
allocated space to allow for the null terminator. "

So the implementation of this function in mpich2-1.0.4 source file
src/util/info/info_get.c, line 120 that inserts a '\0' to the end of 
string can be uncommented.

Wei-keng




More information about the mpich-discuss mailing list