1NN_STRERROR(3) nanomsg 1.1.5 NN_STRERROR(3)
2
3
4
6 nn_strerror - convert an error number into human-readable string
7
9 #include <nanomsg/nn.h>
10
11 const char *nn_strerror (int errnum);
12
14 Converts error number (errno) into a human-readable string. As opposed
15 to strerror(3) this function handles nanomsg-specific errors in
16 addition to standard system errors.
17
19 Return error message string.
20
22 No errors are defined.
23
25 rc = nn_send (s, "ABC", 3, 0);
26 if (rc < 0)
27 printf ("nn_send failed: %s\n", nn_strerror (errno));
28
30 nn_errno(3) nn_symbol(3) nanomsg(7)
31
33 Martin Sustrik <sustrik@250bpm.com>
34
35
36
37 2020-01-29 NN_STRERROR(3)