1ZMQ_STRERROR(3)                   0MQ Manual                   ZMQ_STRERROR(3)
2
3
4

NAME

6       zmq_strerror - get 0MQ error message string
7

SYNOPSIS

9       const char *zmq_strerror (int errnum);
10

DESCRIPTION

12       The zmq_strerror() function shall return a pointer to an error message
13       string corresponding to the error number specified by the errnum
14       argument. As 0MQ defines additional error numbers over and above those
15       defined by the operating system, applications should use zmq_strerror()
16       in preference to the standard strerror() function.
17

RETURN VALUE

19       The zmq_strerror() function shall return a pointer to an error message
20       string.
21

ERRORS

23       No errors are defined.
24

EXAMPLE

26       Displaying an error message when a 0MQ context cannot be initialised.
27
28           void *ctx = zmq_init (1, 1, 0);
29           if (!ctx) {
30               printf ("Error occurred during zmq_init(): %s\n", zmq_strerror (errno));
31               abort ();
32           }
33
34

SEE ALSO

36       zmq(7)
37

AUTHORS

39       This page was written by the 0MQ community. To make a change please
40       read the 0MQ Contribution Policy at
41       http://www.zeromq.org/docs:contributing.
42
43
44
450MQ 4.3.4                         07/23/2021                   ZMQ_STRERROR(3)
Impressum