nn_strerror - Man Page

convert an error number into human-readable string

Synopsis

#include <nanomsg/nn.h>

const char *nn_strerror (int errnum);

Description

Converts error number (errno) into a human-readable string. As opposed to strerror(3) this function handles nanomsg-specific errors in addition to standard system errors.

Return Value

Return error message string.

Errors

No errors are defined.

Example

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

See Also

nn_errno(3) nn_symbol(3) nanomsg(7)

Authors

Martin Sustrik

Referenced By

nanomsg(7), nn_errno(3), nn_symbol(3), nn_symbol_info(3).

2024-09-04 nanomsg 1.2.1