---
name: "MPI_File_get_type_extent_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_get_type_extent_c"
---

# MPI\_File\_get\_type\_extent\_c(3)

Returns the extent of datatype in the file

## NAME

MPI\_File\_get\_type\_extent\_c -  Returns the extent of datatype in the file

## SYNOPSIS

```
int MPI_File_get_type_extent_c(MPI_File fh, MPI_Datatype datatype, MPI_Count * extent)
```

## INPUT PARAMETERS

- **fh**

  \- file handle (handle)

- **datatype**

  \- datatype (handle)

## OUTPUT PARAMETERS

- **extent**

  \- extent of the datatype (nonnegative integer)

## 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.
