---
name: "MPI_File_read_all_c"
section: "3"
platform: "linux"
package: "mpich-doc"
version: "4.0.2-3"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/MPI_File_read_all_c"
---

# MPI\_File\_read\_all\_c(3)

Collective read using individual file pointer

## NAME

MPI\_File\_read\_all\_c -  Collective read using individual file pointer

## SYNOPSIS

```
int MPI_File_read_all_c(MPI_File fh, void *buf, MPI_Count count, MPI_Datatype datatype,
MPI_Status * status)
```

## INPUT PARAMETERS

- **fh**

  \- file handle (handle)

- **count**

  \- number of elements in buffer (nonnegative integer)

- **datatype**

  \- datatype of each buffer element (handle)

## OUTPUT PARAMETERS

- **buf**

  \- initial address of buffer (choice)

- **status**

  \- status object (Status)

## NOTES FOR FORTRAN

All MPI routines in Fortran (except for  *MPI\_WTIME* and  *MPI\_WTICK* ) have an additional argument  *ierr* at the end of the argument list.   *ierr* is an integer and has the same meaning as the return value of the routine in C.  In Fortran, MPI routines are subroutines, and are invoked with the *call* statement.

All MPI objects (e.g.,  *MPI\_Datatype* ,  *MPI\_Comm* ) are of type  *INTEGER* in Fortran.
