'\" t .\" Title: nn_strerror .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.20 .\" Date: 2024-02-21 .\" Manual: nanomsg 1.2.1 .\" Source: \ \& .\" Language: English .\" .TH "NN_STRERROR" "3" "2024-02-21" "\ \&" "nanomsg 1.2.1" .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" nn_strerror \- convert an error number into human\-readable string .SH "SYNOPSIS" .sp \fB#include \fP .sp \fBconst char *nn_strerror (int \fIerrnum\fP);\fP .SH "DESCRIPTION" .sp Converts error number (errno) into a human\-readable string. As opposed to \fIstrerror(3)\fP this function handles nanomsg\-specific errors in addition to standard system errors. .SH "RETURN VALUE" .sp Return error message string. .SH "ERRORS" .sp No errors are defined. .SH "EXAMPLE" .sp .if n .RS 4 .nf .fam C rc = nn_send (s, "ABC", 3, 0); if (rc < 0) printf ("nn_send failed: %s\(rsn", nn_strerror (errno)); .fam .fi .if n .RE .SH "SEE ALSO" .sp nn_errno(3) nn_symbol(3) nanomsg(7) .SH "AUTHORS" .sp .MTO "sustrik\(at250bpm.com" "Martin Sustrik" ""