libsim  Versione 7.2.1

◆ fchar_to_cstr_alloc()

subroutine, public char_utilities::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 780 del file char_utilities.F90.

781 ELSE
782  DEALLOCATE(lsv)
783 ENDIF
784 IF (PRESENT(word_end)) THEN
785  word_end => lev
786 ELSE
787  DEALLOCATE(lev)

Generated with Doxygen.