moyo_to_string Function

public function moyo_to_string(c_str) result(f_str)

Convert a NUL-terminated C string (type(c_ptr)) into a Fortran character value. Returns an empty string for a NULL pointer.

Arguments

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

Return Value character(len=:), allocatable