1NN_STRERROR(3)                   nanomsg 1.1.5                  NN_STRERROR(3)
2
3
4

NAME

6       nn_strerror - convert an error number into human-readable string
7

SYNOPSIS

9       #include <nanomsg/nn.h>
10
11       const char *nn_strerror (int errnum);
12

DESCRIPTION

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

RETURN VALUE

19       Return error message string.
20

ERRORS

22       No errors are defined.
23

EXAMPLE

25           rc = nn_send (s, "ABC", 3, 0);
26           if (rc < 0)
27               printf ("nn_send failed: %s\n", nn_strerror (errno));
28

SEE ALSO

30       nn_errno(3) nn_symbol(3) nanomsg(7)
31

AUTHORS

33       Martin Sustrik <sustrik@250bpm.com>
34
35
36
37                                  2018-10-15                    NN_STRERROR(3)
Impressum