SYNTAX
------

C Syntax
^^^^^^^^

.. code-block:: c

    int MPI_Unpack(const void* inbuf, int insize, int* position, void*
        outbuf, int outcount, MPI_Datatype datatype, MPI_Comm comm)

    int MPI_Unpack_c(const void* inbuf, MPI_Count insize, MPI_Count*
        position, void* outbuf, MPI_Count outcount, MPI_Datatype
        datatype, MPI_Comm comm)

Fortran Syntax
^^^^^^^^^^^^^^

.. code-block:: fortran

    USE MPI
    ! or the older form: INCLUDE 'mpif.h'
    MPI_UNPACK(INBUF, INSIZE, POSITION, OUTBUF, OUTCOUNT, DATATYPE, COMM, IERROR)
    	<type> INBUF(*), OUTBUF(*)
    	INTEGER INSIZE, POSITION, OUTCOUNT, DATATYPE, COMM, IERROR

Fortran 2008 Syntax
^^^^^^^^^^^^^^^^^^^

.. code-block:: fortran

    USE mpi_f08
    MPI_Unpack(inbuf, insize, position, outbuf, outcount, datatype, comm, ierror)
    	TYPE(*), DIMENSION(..), INTENT(IN) :: inbuf
    	INTEGER, INTENT(IN) :: insize, outcount
    	INTEGER, INTENT(INOUT) :: position
    	TYPE(*), DIMENSION(..) :: outbuf
    	TYPE(MPI_Datatype), INTENT(IN) :: datatype
    	TYPE(MPI_Comm), INTENT(IN) :: comm
    	INTEGER, OPTIONAL, INTENT(OUT) :: ierror

    MPI_Unpack(inbuf, insize, position, outbuf, outcount, datatype, comm, ierror)
    	TYPE(*), DIMENSION(..), INTENT(IN) :: inbuf
    	INTEGER(KIND=MPI_COUNT_KIND), INTENT(IN) :: insize, outcount
    	INTEGER(KIND=MPI_COUNT_KIND), INTENT(INOUT) :: position
    	TYPE(*), DIMENSION(..) :: outbuf
    	TYPE(MPI_Datatype), INTENT(IN) :: datatype
    	TYPE(MPI_Comm), INTENT(IN) :: comm
    	INTEGER, OPTIONAL, INTENT(OUT) :: ierror
