summaryrefslogtreecommitdiff
path: root/doc/zmq_strerror.txt
blob: 2bdf762587c7330de4fadb31f6dee9764c18d08e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
zmq_strerror(3)
===============


NAME
----
zmq_strerror - returns string describing the error number


SYNOPSIS
--------
'const char *zmq_strerror (int errnum);'


DESCRIPTION
-----------
As 0MQ defines few additional (non-POSIX) error codes, standard
'strerror' isn't capable of translating those errors into human readable
strings. Instead, 'zmq_strerror' should be used.


RETURN VALUE
------------
Returns string describing the error number.


ERRORS
------
No errors are defined.


EXAMPLE
-------
----
void *ctx = zmq_init (1, 1, 0);
if (!ctx) {
    printf ("error occured during zmq_init: %s\\n", zmq_strerror (errno));
    abort ();
}
----


SEE ALSO
--------
linkzmq:zmq[7]


AUTHOR
------
Martin Sustrik <sustrik at 250bpm dot com>