SYNTAX
------

C Syntax
^^^^^^^^

.. code-block:: c

    int MPI_Request_get_status_any(int count, const MPI_Request
        array_of_requests[], int* index, int* flag, MPI_Status* status)

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

.. code-block:: fortran

    USE MPI
    ! or the older form: INCLUDE 'mpif.h'
    MPI_REQUEST_GET_STATUS_ANY(COUNT, ARRAY_OF_REQUESTS, INDEX, FLAG, STATUS, IERROR)
    	INTEGER COUNT, ARRAY_OF_REQUESTS(*), INDEX, STATUS(MPI_STATUS_SIZE), IERROR
    	LOGICAL FLAG

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

.. code-block:: fortran

    USE mpi_f08
    MPI_Request_get_status_any(count, array_of_requests, index, flag, status, ierror)
    	INTEGER, INTENT(IN) :: count
    	TYPE(MPI_Request), INTENT(IN) :: array_of_requests(count)
    	INTEGER, INTENT(OUT) :: index
    	LOGICAL, INTENT(OUT) :: flag
    	TYPE(MPI_Status) :: status
    	INTEGER, OPTIONAL, INTENT(OUT) :: ierror
