to_c_char Interface

public interface to_c_char

Format or transfer other types as a string. (Specification)


Module Procedures

private pure function to_c_char_from_char(value) result(cstr)

Convert a Fortran character string to a C character array

Version: experimental

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: value

Return Value character(kind=c_char, len=1), (len(value)+1)

private pure function to_c_char_from_string(value) result(cstr)

Convert a Fortran string type to a C character array

Version: experimental

Arguments

Type IntentOptional Attributes Name
type(string_type), intent(in) :: value

Return Value character(kind=c_char, len=1), (len(value)+1)