'\" t .\" Title: tlsrpt_errno_from_error_code .\" Author: Boris Lohner .\" Generator: Asciidoctor 2.0.26 .\" Date: 2026-09-01 .\" Manual: tlsrpt_errno_from_error_code .\" Source: tlsrpt_errno_from_error_code .\" Language: English .\" .TH "TLSRPT_ERRNO_FROM_ERROR_CODE" "3" "2026-09-01" "tlsrpt_errno_from_error_code" "tlsrpt_errno_from_error_code" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" tlsrpt_errno_from_error_code \- returns the `errno` part of an errorcode .SH "SYNOPSIS" .sp #include .sp int tlsrpt_errno_from_error_code(int errorcode) .SH "DESCRIPTION" .sp The \f(CRtlsrpt_errno_from_error_code\fP function returns the \f(CRerrno\fP part of an errorcode. In case of internal library errors from the TLSRPT_ERR_TLSRPT block the returned value will be a high number to avoid clashes with existing errno values. I.e. \f(CRTLSRPT_ERR_TLSRPT_NESTEDPOLICY\fP is 10731 instead of 10031 to avoid the errno part being decoded as \f(CREMLINK\fP. .SH "RETURN VALUE" .sp The tlsrpt_errno_from_error_code function returns 0 on success and a combined error code on failure. The combined error code can be analyzed with the \fItlsrpt_strerror\fP function. .SH "SEE ALSO" .sp man:tlsrpt_error_code_is_internal[3], man:tlsrpt_strerror[3] .SH "AUTHOR" .sp Boris Lohner