libsim Versione 7.2.4

◆ fchar_to_cstr_alloc()

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 770 del file char_utilities.F90.

771 ELSE
772 le = le + ls - 2
773 ENDIF
774 nword = nword + 1
775 lsv(nword) = ls
776 lev(nword) = le
777ENDDO

Generated with Doxygen.