---
name: "MPI_Session_c2f"
section: "3"
platform: "linux"
package: "mpich-doc"
version: "4.3.0+really4.2.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/MPI_Session_c2f"
---

# MPI\_Session\_c2f(3)

converts MPI\_Session to Fortran INTEGER

## NAME

MPI\_Session\_c2f -  converts MPI\_Session to Fortran INTEGER

## SYNOPSIS

```

```

```
MPI_Fint MPI_Session_c2f(MPI_Session session)
```

## INPUT PARAMETERS

- **session**

  \- session (handle)

## THREAD AND INTERRUPT SAFETY

This routine is thread-safe.  This means that this routine may be safely used by multiple threads without the need for any user-provided thread locks.  However, the routine is not interrupt safe.  Typically, this is due to the use of memory allocation routines such as  *malloc* or other non-MPICH runtime routines that are themselves not interrupt-safe.
