---
name: "MPIR_fstr2cstr"
section: "3"
platform: "linux"
package: "mpich"
version: "1.1.0-6"
release: "Debian 2.1 (Slink)"
platforms: ["linux"]
url: "https://new.carta.tech/MPIR_fstr2cstr"
---

# MPIR\_fstr2cstr(3)

onvert a Fortran string into a C string.

## NAME

MPIR\_fstr2cstr -  onvert a Fortran string into a C string.

## SYNOPSIS

```
#include "mpi.h"
int MPIR_fstr2cstr (res, reslen, src, srclen)
char * res;
long reslen;
char *src;
long srclen;
```

## INPUT PARAMETERS

- **resLen**

  \- Length of result space

- **src**

  \- The Fortran string

- **srcLen**

  \- Length of the Fortran string

  The result is 1 if the assignment was possible without truncation, zero otherwise.

  Trailing blanks are removed from the Fortran string.

## LOCATION

fstrutils.c
