Reference: IVECStringToFtnString

Overview

Fills a Fortran string with the contents of a C string.

Prototype (C)

#include "ive_fortran.h"
void IVECStringToFtnString(const char* cstr, ftn_length_t flength, ftn_char_t* fstr);

Prototype (Fortran)

There is no Fortran interface.

Parameters

cstr
cstr is the C string to use as a source.
flength
flength is the length of the Fortran string.
fstr
fstr is the Fortran string which will receive the contents of cstr. If cstr is 0 or is the empty string, fstr is filled with spaces. If the length of cstr is less than or flength, the contents of cstr up to but not including the terminating null are copied to the beginning of fstr and the remainder of fstr is filled with spaces. If the length of cstr is greater than or equal to flength, only the first flength characters are copied to fstr.

Cross references

fortran_types.h


| categories | alphabetical |


modified June 19, 2002

Eric Branlund (eric@msg.ucsf.edu)