SYNTAX
------

C Syntax
^^^^^^^^

.. code-block:: c

    int MPI_Type_dup(MPI_Datatype oldtype, MPI_Datatype* newtype)

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

.. code-block:: fortran

    USE MPI
    ! or the older form: INCLUDE 'mpif.h'
    MPI_TYPE_DUP(OLDTYPE, NEWTYPE, IERROR)
    	INTEGER OLDTYPE, NEWTYPE, IERROR

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

.. code-block:: fortran

    USE mpi_f08
    MPI_Type_dup(oldtype, newtype, ierror)
    	TYPE(MPI_Datatype), INTENT(IN) :: oldtype
    	TYPE(MPI_Datatype), INTENT(OUT) :: newtype
    	INTEGER, OPTIONAL, INTENT(OUT) :: ierror
