Copy the last surfaced error string into a C buffer.
When handle cannot be resolved, the function falls back to the process-wide
API error string so callers can still retrieve create/resolve failures.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | value | :: | handle | |||
| character(kind=c_char, len=1), | intent(out) | :: | buffer(*) | |||
| integer(kind=c_int), | value | :: | buffer_len |