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 0MQ manual page was written by Martin Sustrik
40       <sustrik@250bpm.com[1]> and Martin Lucina <mato@kotelna.sk[2]>.
41

NOTES

43        1. sustrik@250bpm.com
44           mailto:sustrik@250bpm.com
45
46        2. mato@kotelna.sk
47           mailto:mato@kotelna.sk
48
49
50
510MQ 2.1.4                         03/30/2011                   ZMQ_STRERROR(3)
Impressum