dm_mail_read_callback Function

public function dm_mail_read_callback(ptr, sz, nmemb, data) result(n) bind(c))

Callback function to upload payload passed via data to the memory chunk in ptr. Do not call this function directly.

Arguments

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

C pointer to a chunk of memory.

integer(kind=c_size_t), intent(in), value :: sz

Always 1.

integer(kind=c_size_t), intent(in), value :: nmemb

Size of the memory chunk.

type(c_ptr), intent(in), value :: data

C pointer to argument passed by caller.

Return Value integer(kind=c_size_t)

Function return value.