libsim  Versione6.3.0
subroutine, public fchar_to_cstr_alloc ( character(len=*), intent(in)  fchar,
integer(kind=int_b), dimension(:), pointer  pcstr 
)

Converts a CHARACTER variable into a string which can be directly passed to a C function requiring a null-terminated char* (input/output) argument.

The result is stored into pcstr which is allocated within the subroutine and has to be deallocated by the calling procedure.

Parametri
[in]fcharvariable to be converted
pcstrpointer to a 1-d byte array which will be allocated and, on output, will contain the null-terminated string

Definizione alla linea 776 del file char_utilities.F90.


Generated with Doxygen.