int size, mysize, idummy;
void *ptr, *myptr, *dummy;
MPI_Buffer_detach( ∧ptr, ∧size );
MPI_Buffer_attach( myptr, mysize );
...
... library code ...
...
MPI_Buffer_detach( ∧dummy, ∧idummy );
MPI_Buffer_attach( ptr, size );
This is much like the action of the Unix signal routine and has the same
strengths (its simple) and weaknesses (it only works for nested usages).
#include "mpi.h"
int MPI_Buffer_detach( buffer, size )
void **buffer;
int *size;
Location: buffree.c