destroy a radbelt_type from C
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_intptr_t), | intent(in) | :: | ipointer |
subroutine destroy_c(ipointer) bind(C, name="destroy_c") integer(c_intptr_t), intent(in) :: ipointer type(radbelt_type), pointer :: p call int_pointer_to_f_pointer(ipointer, p) if (associated(p)) deallocate (p) end subroutine destroy_c