zap_span_t *my_span_pointer = NULL;
uint32_t span_id = 1;
zap_status_t result;
result = zap_span_find(span_id, &my_span_pointer);
Does this function do what I think it does? If I give it a span number to look for, it returns ZAP_SUCCESS if it finds the span and it sets the value of the pointer variable that I call it with?
Example, what happens if I do this, assuming span 1 is a real span?
zap_span_t *span = NULL;
uint32_t span_id = 1;
result = zap_span_find(span_id, &my_span_pointer);
Does *my_span_pointer now point to span 1? Any caveats that I should be aware of?
Thanks,
MC