c_f_string Subroutine

public subroutine c_f_string(cstrptr, fstr)

converts a c_char pointer array cStrPtr to a fortran string fStr

Arguments

Type IntentOptional Attributes Name
type(c_ptr), intent(in) :: cstrptr

c pointer to a char* array

character(len=*), intent(out) :: fstr

fortan string