Synopsis
CTL_STATUS_t ctl_normalize_status(CTL_STATUS_t stat);
Description

ctl_normalize_status normalizes the status stat. If stat is non-negative, ctl_normalize_status returns CTL_NO_ERROR, otherwise it returns stat unchanged. You can use this to normalize non-zero "additional-status" return values from functions that indicate success with additional information into the standard CTL_NO_ERROR status.

See Also

CTL_STATUS_t