TLSRPT_STRERROR(3)

πŸ’– TLSRPT_STRERROR(3) πŸ’–

okay bestie, welcome to tlsrpt_strerror from the TLSRPT manual β€” yes the whole TLSRPT_STRERROR(3) situation, we're doing this, grab a boba πŸ§‹


✨ NAME ✨

tlsrpt_strerror β€” literally just hands you a static string that describes the error πŸ’… no cap


🌸 SYNOPSIS 🌸

#include <tlsrpt.h>

const char* tlsrpt_strerror(int errorcode)

πŸ¦‹ DESCRIPTION πŸ¦‹

so the tlsrpt_strerror function returns a static string describing the error. that's the whole vibe.

now here's the juicy part πŸ‘€ β€” if the error is not an internal error (and for the record, tlsrpt_error_code_is_internal returns 0 in that case, iykyk), then that text is describing the C library function that gave you the error. and for C library functions that get called from different places inside the TLSRPT library? the calling function gets name-dropped right there in the description. main character energy fr fr πŸ‘‘

⚠️ okay but heads up bestie: the actual error itself has to be retrieved from the C library via the strerror function or its alternatives. tlsrpt_strerror is not doing that for you, she's just narrating.

and the errno value that you pass into the strerror function? you gotta extract that from the error code using the tlsrpt_errno_from_error_code function. yes, extra step, we know, but that's the lore πŸŽ€


⭐ RETURN VALUE ⭐

the tlsrpt_strerror function returns a static string describing the error. that's it, that's the return value, slay ✨


🌈 SEE ALSO 🌈

  • man:tlsrpt_error_code_is_internal[3]
  • man:tlsrpt_errno_from_error_code[3]

go read those too, they're the supporting cast 🫢


πŸ’œ AUTHOR πŸ’œ

Boris Lohner β€” icon, legend, wrote this whole thing, we stan πŸŽ€


and that's the page bestie!! this glorious little manual is from tlsrpt_strerror, dated 2026-05-12, living under the manual name TLSRPT_STRERROR(3) πŸ’– mwah, go forth and strerror responsibly πŸ¦‹βœ¨

πŸ“¦ where this page comes from