---
name: "MPI_Errhandler_c2f"
section: "3"
platform: "linux"
package: "lam4-dev"
version: "7.1.4-7.2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/MPI_Errhandler_c2f"
---

# MPI\_Errhandler\_c2f(3)

Convert an error handler from its C representation to its Fortran representation

## NAME

MPI\_Errhandler\_c2f -  Convert an error handler from its C representation to its Fortran representation

## SYNOPSIS

```
#include <mpi.h>
MPI_Fint
MPI_Errhandler_c2f(MPI_Errhandler err)
```

## INPUT PARAMETER

- **err**

  \- C error handler

## RETURN VALUE

- **f\_handle**

  \- Fortran error handler

## DESCRIPTION

This is a non-standard MPI routine.  It is mainly here because ROMIO needs it.

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

## ERRORS

This function does not return the normal  *MPI\_SUCCESS* integer value upon success.  Instead, it returns a handle to the converted object. If an error occurs, the appropriate NULL handle will be returned.

## SEE ALSO

[MPI\_Errhandler\_c2f(3)](/MPI_Errhandler_c2f/3.md)\

## MORE INFORMATION

For more information, please see the official MPI Forum web site, which contains the text of both the MPI-1 and MPI-2 standards.  These documents contain detailed information about each MPI function (most of which is not duplicated in these man pages).

*http://www.mpi-forum.org/*

## LOCATION

handles.c
