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

# MPIR\_cstr2fstr(3)

onvert a C string into a Fortran string.

## NAME

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

## SYNOPSIS

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

## INPUT PARAMETERS

- **resLen**

  \- Length of result space

- **src**

  \- The C string

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

  Blank padding is added to the Fortran string as required.

## LOCATION

fstrutils.c
